huawaei设备上的应用程序崩溃(Android 6.0 api 23)

时间:2017-05-23 15:45:27

标签: android performance

我尝试在我的设备上调试我的应用程序(AVD没问题),在断点处于此原始(蓝色背景)应用程序崩溃时,在我的MainActivity中: Raw of MainActivity

这是我的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/data@app@rp.com.birthdayinfo-2@split_lib_dependencies_apk.apk@classes.dex: Permission denied
05-23 17:39:07.042 10943-10943/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@rp.com.birthdayinfo-2@split_lib_slice_0_apk.apk@classes.dex: Permission denied
05-23 17:39:07.090 10945-10945/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@rp.com.birthdayinfo-2@split_lib_slice_1_apk.apk@classes.dex: Permission denied
05-23 17:39:07.139 10953-10953/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@rp.com.birthdayinfo-2@split_lib_slice_2_apk.apk@classes.dex: Permission denied
05-23 17:39:07.189 10961-10961/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@rp.com.birthdayinfo-2@split_lib_slice_3_apk.apk@classes.dex: Permission denied
05-23 17:39:07.241 10963-10963/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@rp.com.birthdayinfo-2@split_lib_slice_4_apk.apk@classes.dex: Permission denied
05-23 17:39:07.294 10966-10966/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@rp.com.birthdayinfo-2@split_lib_slice_5_apk.apk@classes.dex: Permission denied
05-23 17:39:07.358 10968-10968/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@rp.com.birthdayinfo-2@split_lib_slice_6_apk.apk@classes.dex: Permission denied
05-23 17:39:07.410 10970-10970/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@rp.com.birthdayinfo-2@split_lib_slice_7_apk.apk@classes.dex: Permission denied
05-23 17:39:07.466 10972-10972/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@rp.com.birthdayinfo-2@split_lib_slice_8_apk.apk@classes.dex: Permission denied
05-23 17:39:07.527 10974-10974/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@rp.com.birthdayinfo-2@split_lib_slice_9_apk.apk@classes.dex: Permission denied

1 个答案:

答案 0 :(得分:0)

我认为这是android显示权限问题 你检查过运行时权限吗? 如果没有阅读以下链接

https://developer.android.com/training/permissions/requesting.html enter link description here