Как установить APK в приложение не может быть завершено - PullRequest
0 голосов
/ 11 декабря 2018

Я делал пример, чтобы понять, как работает 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

gradle

...
...

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'
}
...