我在运行“Nexus 7,Android 4.1.2”等最新的 Android 模拟器时遇到问题。模拟器可以启动,但我无法在其上部署(通过 Maven),这可能取决于这个问题:当我将手机切换到应用程序视图时,我得到“不幸的是,启动器已停止”并且 LogCat 给了我以下信息输出:
01-02 14:30:26.313: W/ActivityManager(151): Permission denied: checkComponentPermission() owningUid=1000 01-02 14:30:26.313: W/BroadcastQueue(151): Permission Denial: broadcasting Intent { act=android .appwidget.action.APPWIDGET_UPDATE_OPTIONS flg=0x10 cmp=com.android.settings/.widget.SettingsAppWidgetProvider (has extras) } 来自 android (pid=970, uid=10014) 由于接收器 com.android 未从 uid 1000 导出。 settings/com.android.settings.widget.SettingsAppWidgetProvider
我的 AndroidManifest 看起来像这样:
<uses-permission android:name="android.permission.INTERNET" />
<uses-sdk
android:minSdkVersion="5"
android:targetSdkVersion="7" />
<application
android:name="my.domain.appcontext.ApplicationContext"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:allowBackup="true">
<activity
android:name="my.domain.appcontext.activities.MainActivity"
android:screenOrientation="nosensor"
android:theme="@android:style/Theme.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="my.domain.appcontext.activities.MainMenuDialogActivity"
android:excludeFromRecents="true"
android:theme="@style/Theme.Dialog" >
</activity>
<activity
android:name="my.domain.appcontext.activities.DistrictMenuDialogActivity"
android:excludeFromRecents="true"
android:theme="@style/Theme.Dialog" >
</activity>
<activity
android:name="my.domain.appcontext.activities.StreetMenuPreselectionDialogActivity"
android:excludeFromRecents="true"
android:theme="@style/Theme.Dialog" >
</activity>
<activity
android:name="my.domain.appcontext.activities.StreetMenuDialogActivity"
android:excludeFromRecents="true"
android:theme="@style/Theme.Dialog" >
</activity>
<uses-library android:name="com.google.android.maps"
android:required="true" />
</application>
有任何想法吗?