Android Gradle build-info.xml not found

When I try to run an old application using InstantRun, it says that:

Gradle build-info.xml not found for module application. Make sure you use the gradle plugin '2.0.0-alpha4' or higher.

How can i solve this?

+5
source share
2 answers

With the recent release of Android Studio 2.0, the new Android gradle 2.0.0 plugin has appeared. You can apply this in your top level buildscript block build.gradle by changing the version of the plugin to look like this:

buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.0.0' } } 

EDIT: Some projects previously managed by Android Studio 1.5 can cause such strange problems. To fix these problems, you may need to delete the .idea project .idea and re-import it into AS 2.0.

+5
source

This happened after upgrading to Studio 2.0. I disabled the Instant Run feature, fixing this problem.

Update

After I upgraded Android studio to version 2.1.1, enable the instant launch feature. it works

Update2

It seems when I create the release version, turn on instant start in order, and not to build debugging. so strange.

+4
source

Source: https://habr.com/ru/post/1246716/


All Articles