每次尝试启动应用程序时,都会立即崩溃,因为它会收到此错误。Android安全例外 - 没有权限ACCESS_NETWORK_STATE
这里是我的清单
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.simpleweatherandroid"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="19" />
<uses-permission android:name="INTERNET"/>
<uses-permission android:name="ACCESS_NETWORK_STATE"/>
<application
android:exported = "true"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.simpleweatherandroid.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
我肯定在那里的许可,我都用完了解决方案,我可以拿出/在互联网上找到。我无法弄清楚这一点。有谁知道什么是错的?我对此很新,所以它可能是一些基本的东西。
添加权限后''标签关闭,并尝试 –
每当我尝试它告诉我,它需要正下方是清单标记为它的工作 – user2913241