I know there are a couple of threads on this but none seem to solve my problem. I just installed Android Studio v0.4.6 on my Mac. Every time I create a new project I get the error:
Gradle 'Budget' project refresh failed:
Content is not allowed in prolog.
In more detail I get:
Error:A problem occurred configuring root project 'Budget'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve org.ow2.asm:asm-analysis:4.0.
Required by:
:Budget:unspecified > com.android.tools.build:gradle:0.7.3 > com.android.tools.lint:lint:22.4.2 > com.android.tools.lint:lint-checks:22.4.2
> Could not parse POM http://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/4.0/asm-analysis-4.0.pom
> Content is not allowed in prolog.
> Could not resolve org.ow2.asm:asm-tree:4.0.
Required by:
:Budget:unspecified > com.android.tools.build:gradle:0.7.3 > com.android.tools.lint:lint:22.4.2 > com.android.tools.lint:lint-checks:22.4.2 > com.android.tools.lint:lint-api:22.4.2
> Could not parse POM http://repo1.maven.org/maven2/org/ow2/asm/asm-tree/4.0/asm-tree-4.0.pom
> Content is not allowed in prolog.
I can't seem to find a solution to this issue. I tried updating Android Studio to v0.5, changing the dependencies:
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
and both of those failed. Any help would really be appreciated!
compile 'org.ow2.asm:asm-analysis:4.0'dependency in a test project, and it works fine for me, so it must be something about your setup.