在android studio中构建apk时找不到Aapt_rules.txt [英] Aapt_rules.txt not found when building apk in android studio

查看:27
本文介绍了在android studio中构建apk时找不到Aapt_rules.txt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行 proguard 来构建我的 apk 文件时,出现以下错误:

When running proguard to build my apk file, I get the following error:

Warning:Exception while processing task java.io.FileNotFoundException: C:\Users\Josh\Documents\AdscendUnityPlugin2.1.3\AdscendUnityPlugin2.1.3\HelloUnity\Export\HelloUnity\build\intermediates\proguard-rules\debug\aapt_rules.txt (The system cannot find the path specified)

我的gradle文件:

My gradle file:

// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0'
    }
}

allprojects {
   repositories {
       jcenter()
      flatDir {
        dirs 'libs'
      }
   }
}

apply plugin: 'com.android.application'

repositories {

    maven { url "https://bitbucket.org/adscend/androidsdk/raw/master/" }
}


dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.adscendmedia.sdk:adscendmedia:2.1.26'
}

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.0'

    defaultConfig {
        targetSdkVersion 25
    }

    lintOptions {
        abortOnError false
    }

    buildTypes {
        debug {
            jniDebuggable true
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'
        }
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'

        }
    }

}

我似乎也找不到文件夹proguard-rules",是什么导致了这个错误?有什么想法吗?

I couldn't seem to find the folder 'proguard-rules' either, what could be causing this error? Any ideas?

我知道我正在调试版本上运行 proguard,我只是想让它在这一点上工作.

I am aware i'm running proguard on my debug build, i'm just trying to get it to work at this point.

谢谢

推荐答案

就我而言,我的自定义 proguard.pro 是空白的.重建项目对我有用.

In my case my custom proguard.pro is blank. Rebuild project works for me.

这篇关于在android studio中构建apk时找不到Aapt_rules.txt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆