Can't run app with Instant Run on Android Studio 3.0

前端 未结 3 1181
生来不讨喜
生来不讨喜 2021-02-13 14:43

I\'ve updated to Android Studio 3.0 and now I cannot run the app with Instant Run enabled.

I get \'Execution failed for task\' due to a java.io.FileNotF

相关标签:
3条回答
  • 2021-02-13 14:59

    Have your settings as below,

    Otherwise try to clean and re-install (after uninstalling exsisting apk) application.

    0 讨论(0)
  • 2021-02-13 15:16

    Configure your project for Instant Run

    Android Studio enables Instant Run by default for projects built using Android plugin for Gradle 2.3.0 and higher. Please checkout this LINK to configure your project for instant run.

    0 讨论(0)
  • 2021-02-13 15:18

    I found the problem and the solution.

    In my case the cause was dexcount-gradle-plugin. The plugin is expecting that the package task produces an APK, but that is not true anymore on Instant Run. So they released a new version that disables the process when running with Instant Run.

    So I just had to update dexcount to the latest version.

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