Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Gradle build-info.xml not found

Tags:

android

gradle

When i try to start an old App with the InstantRun it says that:

Gradle build-info.xml not found for module app. Please make sure that you are using gradle plugin '2.0.0-alpha4' or higher.

How can i solve this?

like image 833
Roberto Aureli Avatar asked Apr 08 '16 15:04

Roberto Aureli


2 Answers

With the recent release of Android Studio 2.0, there is a new Android gradle plugin 2.0.0. You can apply that in your top-level build.gradle buildscript block 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 that were previously managed by Android Studio 1.5 may exhibit strange problems like this. To clear these problems, it may be required to delete the project's .idea directory and re-import it into AS 2.0.

like image 191
Doug Stevenson Avatar answered Sep 27 '22 18:09

Doug Stevenson


It happend after updated to Studio 2.0, I disable Instant Run function fix this issue

Update

After I upgrade android studio to version 2.1.1, enable instant run function. it works

Update2

It seems when I build release version, enable instant run is OK, not for debug version build. so strange.

like image 39
panda Avatar answered Sep 27 '22 18:09

panda