Gradle error on Android Studio startup
android-studio, android-support-library, build.gradle, gradle
Solution
EDIT
- Go to `File > Settings > "Build,Execution,Deployment"> Compiler`
Click compiler directly.
- Check the option: `Use external build` > `Apply` > `OK`.
It worked for me !! :)
Problem
Every time I start Android Studio I get the following error: Gradle 'VertretungsplanProject' project refresh failed: Could not fetch model of type 'IdeaProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'. A problem occurred configuring project ':Vertretungsplan'. A problem occurred configuring project ':Vertretungsplan'. Failed to notify project evaluation listener. A problem occurred configuring project ':libraries:actionbarsherlock'. Failed to notify project evaluation listener. Could not normalize path for file 'P:\Projekte\VertretungsplanProject\libraries\actionbarsherlock:Vertretungsplan\libs\android-support-v4.jar'. The syntax for the filename, directoryname or the volume label is wrong My project looks like this: Gradle settings: build.gradle of :Vertretungsplan: ``` buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.+' } } apply plugin: 'android' dependencies { compile files('libs/commons-io-2.4.jar') compile project(':libraries:actionbarsherlock') } android { compileSdkVersion 17 buildToolsVersion "17.0.0" defaultConfig { minSdkVersion 8 targetSdkVersion 16 } } ``` build.gradle of :VertretungsplanProject is empty. build.gradle of :actionbarsherlock: ``` buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.+' } } apply plugin: 'android-library' dependencies { compile files(':Vertretungsplan/libs/android-support-v4.jar') } android { compileSdkVersion 17 buildToolsVersion "17.0.0" defaultConfig { minSdkVersion 7 targetSdkVersion 16 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] res.srcDirs = ['res'] } } } ``` When I want to compile now this error appears: Deprecated make implementation Old implementation of "Make" feature is enabled for this project. It has been deprecated and will be removed soon. Please enable newer 'external build' feature in Settings | Compiler. After changing this setting to `Use external build` everything is working fine. But this appears every time I start Android Studio and this is really annoying. UPDATE I deleted the `android-support-v4.jar` from the `libs` folder and simply wrote `compile 'com.android.support:support-v4:18.0.0'` to the `build.gradle` of ActionbarSherlock. Then the `android-support-v4.jar` is used from the installed SDK.