Gradle error: Unexpected inputs: android.gms:play-services

前端 未结 4 1790
故里飘歌
故里飘歌 2021-02-07 03:16

In RunTime show error in Gradle the error:

Error:Execution failed for task \':app:transformClassesWithInstantRunForDebug\'.

Unexpected inputs: Imm

相关标签:
4条回答
  • 2021-02-07 03:27

    Remove Build Folder from Project->app->build and run your project.

    0 讨论(0)
  • 2021-02-07 03:30

    It seems you have enable Instant Run in Android Studio.

    1) Disable Instant Run from File -> Settings -> Instant Run
    2) Clean Your Project
    3) Run Your App

    0 讨论(0)
  • 2021-02-07 03:42

    When I Add this line the problem solved:

            MobileAds.initialize(getApplicationContext(), "ca-app-pub-xxxxxxxxxxxxx");
    

    Thanks for all who response.

    0 讨论(0)
  • 2021-02-07 03:46

    Personally, Build => Clean Project and then rebuilding fixed it for me.

    0 讨论(0)
提交回复
热议问题