Reputation: 125
i created a new project and didn't modify any files.
i just run the mobile module after the project was created.
The error message is: Error:Execution failed for task ':mobile:compileDebugJavaWithJavac'.
java.io.FileNotFoundException: C:\Users\Administrator\AndroidStudioProjects\InTheLeft\mobile\build\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar (can't find this path)
there is build.gradle :
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "ooo.zuo.intheleft"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
wearApp project(':wear')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services:8.4.0'
}
Upvotes: 1
Views: 3000
Reputation: 75798
At first Upgrade SDK Manager .
java.io.FileNotFoundException: C:\Users\Administrator\AndroidStudioProjects\InTheLeft\mobile\build\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar (can't find this path)
This exception is thrown during a failed attempt to open the file denoted by a specified pathname.
What is your classpath
??
You can use
compile 'com.google.android.gms:play-services:8.3.0'
& Use this
classpath 'com.android.tools.build:gradle:2.0.0-alpha2'
Then Clean-Rebuild Your Project .
Upvotes: 1