小编Man*_*att的帖子

无法规范化文件'E:\ WorkSpace\mapdemo\app\build\intermediates\mockable-Google Inc.:Google API:21.jar'的路径

我正在尝试运行此应用程序,但它给了我错误,我不明白这个错误的含义?

我在build.gradle文件中也添加了google play服务库:

apply plugin: 'com.android.application'

android {
compileSdkVersion 'Google Inc.:Google APIs:21'
buildToolsVersion "21.1.2"

defaultConfig {
    applicationId "act.com.mapdemo"
    minSdkVersion 19
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.android.gms:play-services:6.5.87'
}
Run Code Online (Sandbox Code Playgroud)

我的xml文件:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<fragment
    android:id="@+id/map"
    android:name="com.google.android.gms.maps.MapFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)

当我运行它时给我错误:

Gradle 'mapdemo' project refresh failed

Error:Could not normalize path for file 'E:\WorkSpace\mapdemo\app\build\intermediates\mockable-Google Inc.:Google APIs:21.jar'.
The filename, …
Run Code Online (Sandbox Code Playgroud)

java android android-studio

9
推荐指数
2
解决办法
6410
查看次数

标签 统计

android ×1

android-studio ×1

java ×1