0
回答
小白求大神指点,android studio2.33 真机安装是报错。
百度AI开发者大赛带你边学边开发,赢100万奖金,加群:418589053   

刚买了个新手机vivoxplay6 android7.11。新建空白程序helloworld模拟器安装运行无问题,真机安装就报错。老手机则无问题。这是什么问题啊?(用的 android studio2.33,usb调试、开发者模式、允许未知来源均打开,重装as若干次,重新初始化手机若干次,重启电脑手机若干次,均无法解决问题,跪求答案,谢谢!)

<Eventlog:>

14:43    Failed to finalize session : INSTALL_FAILED_INTERNAL_ERROR

14:43    Session 'app': Error Installing APKs

<logcat:>

09-06 14:43:41.361 21066-21066/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
09-06 14:43:41.367 21066-21066/? D/AndroidRuntime: CheckJNI is OFF
09-06 14:43:41.467 4951-5072/? D/DataFormatter: Special bytes : 0
09-06 14:43:41.513 21066-21066/? E/libmdmdetect: Failed to open /sys/bus/msm_subsys/devices/subsys0/name: Permission denied
09-06 14:43:41.529 21066-21066/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
09-06 14:43:41.543 21066-21066/? W/System: ClassLoader referenced unknown path: /oem/lib64
09-06 14:43:41.561 21066-21066/? I/Radio-JNI: register_android_hardware_Radio DONE
09-06 14:43:41.565 21066-21066/? D/NativeLibraryHelper: count = 1
09-06 14:43:41.593 21066-21066/? D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm
09-06 14:43:41.604 1466-26568/? D/PackageManager: deletePackage_ packageName com.sugem.a1 callingUid:2000 callingPid:21066
09-06 14:43:41.608 21066-21066/? I/art: System.exit called, status: 0
09-06 14:43:41.608 21066-21066/? I/AndroidRuntime: VM exiting with result code 0.
09-06 14:43:41.611 21066-21080/? W/MessageQueue: Handler (android.os.Handler) {9af3601} sending message to a Handler on a dead thread
                                                 java.lang.IllegalStateException: Handler (android.os.Handler) {9af3601} sending message to a Handler on a dead thread
                                                     at android.os.MessageQueue.enqueueMessage(MessageQueue.java:543)
                                                     at android.os.Handler.enqueueMessage(Handler.java:643)
                                                     at android.os.Handler.sendMessageAtTime(Handler.java:612)
                                                     at android.os.Handler.sendMessageDelayed(Handler.java:582)
                                                     at android.os.Handler.post(Handler.java:338)
                                                     at android.os.ResultReceiver$MyResultReceiver.send(ResultReceiver.java:57)
                                                     at com.android.internal.os.IResultReceiver$Stub.onTransact(IResultReceiver.java:58)
                                                     at android.os.Binder.execTransact(Binder.java:565)
09-06 14:43:42.581 745-886/? E/ThermalEngine: +++VivoThermal change mode :3 before 
 

《biuld.gradle:》

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "26.0.1"
    defaultConfig {
        applicationId "com.sugem.a2"
        minSdkVersion 21
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'junit:junit:4.12'
}
<无标签>
举报
sulinly
发帖于11个月前 0回/103阅
顶部