I used the latest version of android studio to create my android app. The gradle shell installed the gradle installation, and the project was created without errors.
In the end, I started getting one error every time I restarted.
Gradle: There was a problem setting up the Application project.
Failed to resolve all dependencies for configuration ': App: classpath'. Failed to resolve com.android.tools.build: gradle: 0.5. +. Requires: Application: application: unspecified
org.slf4j.spi.LocationAwareLogger.log (Lorg / SLF4J / Token; Ljava / languages ββ/ String; ILjava / languages ββ/ String; [Ljava / languages ββ/ object; Ljava / languages ββ/ Throwable;)
The problem can be fixed by re-executing gradlew and the build went fine. But after updating the posters of studio 0.3 and Android to 0.6. + I cannot even execute gradlew without receiving this error message.
I tried to delete the android studio with all its configuration files, deleted the .gradle folders in the project and home directory and even in the .m2 repository. I canβt even start a new android project, it fails with the same error, so there should be no problems with my build.grade
buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' repositories { mavenCentral() } android { compileSdkVersion 18 buildToolsVersion "18.1.1" defaultConfig { minSdkVersion 15 targetSdkVersion 18 } sourceSets { main { manifest.srcFile 'src/main/AndroidManifest.xml' java.srcDirs = ['src/main/java'] res.srcDirs = ['src/main/res'] } } } dependencies { compile 'com.android.support:support-v4:18.0.0' compile 'org.jsoup:jsoup:1.7.2' }
source share