无法在应用中安装APK的方法无法完成

时间:2018-12-10 21:39:12

标签: android gradle android-room android-instant-run

我正在举一个例子来了解Romm Persistent Lib的工作原理。完成代码并尝试在模拟器上运行后,我收到以下发布的错误。

SO中的一篇文章,建议刷新Gradle项目“:app”。我尝试了此解决方案,但仍然无法正常工作。

代码

12/10 22:04:47: Launching app
$ adb install-multiple -r -t C:\AndroidProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_8.apk C:\Android\projects\AndroidStudioProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_4.apk C:\AndroidProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_6.apk C:\AndroidProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_1.apk C:\Android\projects\AndroidStudioProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_1.apk C:\AndroidProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_3.apk C:\AndroidProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_5.apk C:\Android\projects\AndroidStudioProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_2.apk C:\Android\projects\AndroidStudioProjects\Services\Room_01\app\build\intermediates\split-apk\debug\dep\dependencies.apk C:\AndroidProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_9.apk C:\Android\projects\AndroidStudioProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_6.apk C:\Android\projects\AndroidStudioProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_8.apk C:\AndroidProjects\Services\Room_01\app\build\intermediates\split-apk\debug\dep\dependencies.apk C:\Android\projects\AndroidStudioProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_5.apk C:\AndroidProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_7.apk C:\Android\projects\AndroidStudioProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_3.apk C:\AndroidProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_0.apk C:\AndroidProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_4.apk C:\AndroidProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_2.apk C:\Android\projects\AndroidStudioProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_0.apk C:\Android\projects\AndroidStudioProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_7.apk C:\AndroidProjects\Services\Room_01\app\build\intermediates\resources\instant-run\debug\resources-debug.apk C:\Android\projects\AndroidStudioProjects\Services\Room_01\app\build\intermediates\split-apk\debug\slices\slice_9.apk C:\AndroidProjects\Services\Room_01\app\build\intermediates\instant-run-apk\debug\app-debug.apk 
$ adb shell pm uninstall co.exa.pc_ar.room_01
Unknown failure (at android.os.Binder.execTransact(Binder.java:674))
Error while Installing APKs

渐变

...
...

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'android.arch.persistence.room:runtime:1.0.0'
annotationProcessor 'android.arch.persistence.room:compiler:1.0.0'
}

0 个答案:

没有答案