Gradle build-info.xml not found for module app in Android Studio

后端 未结 6 1053
温柔的废话
温柔的废话 2020-12-28 14:08

Gradle build-info.xml not found for module app. Please make sure that you are using gradle plugin gradle:2.0.0-alpha or greater

I\'m usi

相关标签:
6条回答
  • 2020-12-28 14:53

    run->clean and re-run the app. done my job.

    0 讨论(0)
  • 2020-12-28 14:53

    I experienced the same warning/error and learned that in my case it was caused by missing or incorrectly configured .idea files.

    More specifically, make sure your "gradleHome" in .idea/gradle.xml is pointing at the right location:

    .idea/gradle.xml

    <option name="gradleHome" value="C:\Program Files\Android\Android Studio Canary\gradle\gradle-2.10" />
    

    If the problem persists, ensure you app modules is correctly configured:

    .idea/modules.xml

    <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
    
    0 讨论(0)
  • 2020-12-28 15:02

    For me it happens on the Mac, but on Windows it works fine all the time. Ever since I updated Android Studio to version 2.0 beta, the issue was still present until official 2.0 Android Studio version.

    What helped was disabling Instant Run in Android Studio -> Preferences (search for "instant run" or) -> "Build, Execution, Deployment" -> Instant Run -> Enable Instant Run -> turn off

    0 讨论(0)
  • 2020-12-28 15:05

    Try removing other gradle versions from studio. Let's say you have gradle 2.10 running and also have 2.8 install, the gradle wrapper behaves unexpectedly in this case. Therefore we have to clean and rebuild every time.

    This works in mine case; hope in yours' too. :)

    0 讨论(0)
  • 2020-12-28 15:08

    I had the same problem. In my case, I had to do File -> Settings -> Build, Execution, Deployment -> Compiler and then check Use in-process build.

    0 讨论(0)
  • 2020-12-28 15:12

    I modified the build.Gradle of project as:

    buildscript {
        repositories {
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.+'
    
            // using 2.+ will solve the problem
        }
    }
    
    0 讨论(0)
提交回复
热议问题