Android - error opening trace file: No such file or directory(2)

前端 未结 2 1028
面向向阳花
面向向阳花 2021-01-15 05:35

I am developing an android application and one part of it is to check whether the wifi of the phone is enabled or not.

I am running the application directly on mobil

相关标签:
2条回答
  • 2021-01-15 06:11

    I guess you need the ACCESS_NETWORK_STATE in your manifest.

    0 讨论(0)
  • 2021-01-15 06:21

    Need to check your main class(MainActivity) file is mentioned or not in 'Manifest.xml'.

    <activity
                android:label="@string/app_name"
                android:name="com.androidexample.demo.MainActivity" >
                <intent-filter >
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
    </activity>
    
    0 讨论(0)
提交回复
热议问题