错误:任务':app:prepareComGoogleAndroidGmsPlayServicesAds1020Library'执行失败。 >无法扩展ZIP' play-services-ads-10.2.0.aar'

时间:2017-03-03 06:33:05

标签: android android-studio android-gradle

我刚开始学习安卓工作室,我创建了一个简单的应用程序,但当我即将签署APK时,我收到了此错误消息。

错误:任务执行失败':app:prepareComGoogleAndroidGmsPlayServicesAds1020Library'。

  

无法展开ZIP' C:\ Users \ yugio \ AppData \ Local \ Android \ sdk \ extras \ google \ m2repository \ com \ google \ android \ gms \ play-services-ads \ 10.2.0 \玩服务的广告,10.2.0.aar'

我不知道该怎么办;我已经尝试了目录权限,但它没有用。我正在运行Windows 10 Pro。

这是清单

<?xml version="1.0" encoding="utf-8"?>

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />

    <activity
        android:name="com.google.android.gms.ads.AdActivity"
        android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
        android:theme="@android:style/Theme.Translucent" />


    <activity android:name=".MainActivity" android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".SecondActivity" android:label="Verification Status" />
</application>

这是我的Gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "com.paradoxygo.yugiohduellinkscheat"
        minSdkVersion 14
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.1.1'
    testCompile 'junit:junit:4.12'
    compile 'com.google.android.gms:play-services-ads:10.2.0'
}

0 个答案:

没有答案