android — Ошибка ImmutableJarInput после обновления сервиса Google Play до 15.0.0" />

Ошибка ImmutableJarInput после обновления сервиса Google Play до 15.0.0

После обновления библиотеки Google Play Service (и Firebase тоже) до 15.0.0, я получаю сообщение об ошибке вроде этого:

java.lang.IllegalStateException: Unexpected inputs:    ImmutableJarInput{name=com.google.android.gms:play-services-location-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/99.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-auth-api-phone-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/116.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-maps:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/108.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-base-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/103.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-core:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/94.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-analytics-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/120.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-location:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/111.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-common-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/93.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-tasks:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/104.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-base:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/117.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-basement-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/107.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-analytics-impl:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/112.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-auth:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/105.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-iid-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/119.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-analytics:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/97.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-maps-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/100.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-auth-base:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/113.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-analytics-impl-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/96.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-basement:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/109.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-auth:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/115.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-auth-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/98.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-messaging-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/95.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-messaging:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/102.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-auth-base-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/101.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-iid:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/118.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-common:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/106.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-auth-api-phone:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/110.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-tasks-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/114.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED}

Но когда я меняю версию библиотеки обратно на 12.0.1, мое приложение работает нормально. Есть идеи для решения этой проблемы?

EDIT: хорошо, после восстановления эта ошибка исчезла. Но при запуске приложения в эмуляторе, я получаю сообщение об ошибке, похожее на это в logcat:

E/DialogRedirect: Failed to start resolution intent
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.google.android.gms&pcampaignid=gcore_12451000-d-id.myapp.app-19 flg=0x80000 pkg=com.android.vending }
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1936)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1615)
    at android.app.Activity.startActivityForResult(Activity.java:4472)
    at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
    at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:68)
    at android.support.v4.app.ActivityCompat.startActivityForResult(ActivityCompat.java:233)
    at android.support.v4.app.FragmentActivity.startActivityFromFragment(FragmentActivity.java:830)
    at android.support.v4.app.FragmentActivity$HostCallbacks.onStartActivityFromFragment(FragmentActivity.java:939)
    at android.support.v4.app.Fragment.startActivityForResult(Fragment.java:1021)
    at android.support.v4.app.Fragment.startActivityForResult(Fragment.java:1010)
    at com.google.android.gms.common.internal.zzd.redirect(Unknown Source:10)
    at com.google.android.gms.common.internal.DialogRedirect.onClick(Unknown Source:0)
    at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:166)
    at android.os.Handler.dispatchMessage(Handler.java:105)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6541)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

Эмулятор сказал, что мне нужно обновить службы Google, но когда я нажал на сообщение, ничего не произошло.

7 голосов | спросил hahnsaja 23 AMpMon, 23 Apr 2018 09:48:54 +030048Monday 2018, 09:48:54

1 ответ


0

Я столкнулся с той же проблемой и только что сделал

Build -> clean project 

и запустить снова работает нормально

ответил Sattar 24 +03002018-10-24T16:19:45+03:00312018bEurope/MoscowWed, 24 Oct 2018 16:19:45 +0300 2018, 16:19:45

Похожие вопросы

Популярные теги

security × 330linux × 316macos × 2827 × 268performance × 244command-line × 241sql-server × 235joomla-3.x × 222java × 189c++ × 186windows × 180cisco × 168bash × 158c# × 142gmail × 139arduino-uno × 139javascript × 134ssh × 133seo × 132mysql × 132