2017-05-23 269 views
0

我嘗試在我的設備上調試我的應用程序(使用AVD沒問題),在我的MainActivity中,當斷點處於原始狀態(帶有藍色背景)時,應用程序崩潰: Raw of MainActivityhuawaei設備上的應用程序崩潰(Android 6.0 api 23)

這是我的Manifest.xml:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    package="rp.com.birthdayinfo"> 

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
    <uses-permission android:name="android.permission.INTERNET" /> 
    <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 
    <uses-permission android:name="com.huawei.android.launcher.permission.READ_SETTINGS" /> 
    <uses-permission android:name="com.huawei.android.launcher.permission.WRITE_SETTINGS" /> 
    <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" /> 
    <uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS" /> 
    <uses-permission android:name="com.android.launcher3.permission.READ_SETTINGS" /> 
    <uses-permission android:name="com.android.launcher3.permission.WRITE_SETTINGS" /> 
    <uses-permission android:name="com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS" /> 

    <supports-screens 
     android:largeScreens="true" 
     android:smallScreens="false" 
     android:xlargeScreens="true" /> 

    <application 
     android:name="android.support.multidex.MultiDexApplication" 
     android:hardwareAccelerated="false" 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:largeHeap="true" 
     android:supportsRtl="true" 
     android:theme="@style/MyMaterialTheme" 
     tools:replace="android:icon"> 

最後是logcat的:

05-23 17:39:06.749 10940-10940/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/[email protected]@[email protected][email protected]: Permission denied 
05-23 17:39:07.042 10943-10943/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/[email protected]@[email protected][email protected]: Permission denied 
05-23 17:39:07.090 10945-10945/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/[email protected]@[email protected][email protected]: Permission denied 
05-23 17:39:07.139 10953-10953/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/[email protected]@[email protected][email protected]: Permission denied 
05-23 17:39:07.189 10961-10961/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/[email protected]@[email protected][email protected]: Permission denied 
05-23 17:39:07.241 10963-10963/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/[email protected]@[email protected][email protected]: Permission denied 
05-23 17:39:07.294 10966-10966/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/[email protected]@[email protected][email protected]: Permission denied 
05-23 17:39:07.358 10968-10968/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/[email protected]@[email protected][email protected]: Permission denied 
05-23 17:39:07.410 10970-10970/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/[email protected]@[email protected][email protected]: Permission denied 
05-23 17:39:07.466 10972-10972/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/[email protected]@[email protected][email protected]: Permission denied 
05-23 17:39:07.527 10974-10974/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/[email protected]@[email protected][email protected]: Permission denied 

回答

相關問題