android -\intermediates\proguard-rules\release\aapt_rules.txt(系统找不到指定的路径)

标签 android apk proguard signed-apk

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.3"
    defaultConfig {
        applicationId "com.****"
        minSdkVersion 21
        targetSdkVersion 25
        versionCode 30
        versionName "1.0"
        multiDexEnabled true

        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
        signingConfig signingConfigs.config
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
}

repositories {
    maven { url "https://dl.bintray.com/hani-momanii/maven" }
    mavenCentral()

    jcenter()
    maven { url "https://jitpack.io" }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    testCompile 'junit:junit:4.12'

    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.volley:volley:1.0.0'
    compile 'com.android.support:design:25.3.1'
    compile 'com.android.support:support-v4:25.3.1'
    compile 'com.google.android.gms:play-services-maps:9.6.1'
    compile 'com.google.android.gms:play-services-location:9.6.1'
    compile 'com.android.support:support-vector-drawable:25.0.0'
    compile 'hani.momanii.supernova_emoji_library:supernova-emoji-library:0.0.2'
    compile 'com.google.maps.android:android-maps-utils:0.5'
    compile 'com.googlecode.libphonenumber:libphonenumber:7.0.4'
    compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
    compile 'com.theartofdev.edmodo:android-image-cropper:2.2.0'
    compile 'com.facebook.android:facebook-android-sdk:4.+'
    compile 'org.fusesource.mqtt-client:mqtt-client:1.12'
    compile 'com.google.firebase:firebase-messaging:9.6.1'
    compile 'com.squareup.okhttp3:okhttp:3.4.1'
    compile 'com.android.support:cardview-v7:25.3.1'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.android.support.test.espresso:espresso-core:2.2.2'
    compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
    testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

我想使用 minifyEnabled true 并尝试生成签名的 Apk 但出现错误

Warning:Exception while processing task java.io.FileNotFoundException: \app\build\intermediates\proguard-rules\release\aapt_rules.txt (The system cannot find the path specified).

我应该怎么做才能避免这个错误?

最佳答案

构建清洁项目。 转到 Android Studio -> 文件 -> 使缓存无效/重新启动

关于android -\intermediates\proguard-rules\release\aapt_rules.txt(系统找不到指定的路径),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44198258/

相关文章:

android - 存储需要在我的移动应用程序中检索的数据

android - Android 上的 Firebase 需要什么 ProGuard 配置?

Android - Maven Build - Proguard - 找不到引用的类

安卓自定义EditText

java - Android上动态添加TextView到ScrollView

android - Android Oreo 上未添加地理围栏

android - 在 Android Studio 中生成签名的 apk 时使用哪种摘要算法?

php - 用于强制下载 apk 文件的 header

android - 我怎样才能找到从特定纬度和经度到周边地区的距离(以公里为单位)?

java - Proguard Maven 使用 Lambda 表达式屏蔽错误