android - 谷歌播放服务 8.4.0 - 找不到 classes.jar - android studio

标签 android android-gradle-plugin google-play-services

我在运行或调试应用程序时收到此错误,但在构建或清理我的项目时没有出现错误。这听起来很奇怪,但我已经浪费了 4-5 个小时来寻找它,但没有任何帮助。 错误:

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.> java.io.FileNotFoundException: C:\Users\Saeed Jassani\Downloads\AppName\app\build\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar (The system cannot find the path specified)

build.gradle 文件:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
    applicationId "com.example.app"
    minSdkVersion 9
    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'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.android.support:support-v4:23.1.1'
}

最佳答案

您可以使用 alpha6 解决此问题:

repositories {
    mavenCentral()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.0.0-alpha6'
}

关于android - 谷歌播放服务 8.4.0 - 找不到 classes.jar - android studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34813726/

相关文章:

javascript - 如何在 ionic 应用程序中共享链接回应用程序的链接

java - com.android.build.api.transform.TransformException : java. util.zip.ZipException : duplicate entry: com/android/volley/Request$Priority. 类

android - 如何在多项目 Android 构建中排除重复的 C 共享库 (.so)?

android - 导入时自动附加源

android - 使用 Vision API 扫描反色二维码

java - Android - 从更改默认短信应用程序对话框中获取结果

android - 从 Eclipse 导入 Android Studio 中的项目

android - 在 Corona SDK 中,如何将我的局部变量转换为全局变量?

powershell - 使用 Firebase Admin SDK 私钥的 Powershell 中的 Google Identity Platform : Using OAuth 2. 0

android - 您应该在每个 Activity 中连接和断开与 Google Play 服务的连接吗?