Khi chạy Proguard để xây dựng tập tin apk của tôi, tôi nhận được lỗi sau:Aapt_rules.txt không tìm thấy khi xây dựng apk trong studio android
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)
tập tin gradle của tôi:
// 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'
}
}
}
Tôi couldn' t dường như cũng tìm thấy thư mục 'proguard-rules', điều gì có thể gây ra lỗi này? Bất kỳ ý tưởng nào?
Tôi biết mình đang chạy chương trình bảo vệ trên bản dựng gỡ lỗi của mình, tôi chỉ đang cố gắng làm cho nó hoạt động vào thời điểm này.
Cảm ơn bạn
Tôi cũng đang gặp phải vấn đề tương tự. Có thể là vấn đề này gây ra trong phiên bản mới nhất Gradle plugin. Lần đầu tiên tôi thấy loại vấn đề này. Tôi gặp phải vấn đề này khi tôi nâng cấp Android Studio với phiên bản plugin Gradle 2.3.0 –
Tương tự ở đây, tôi chưa tìm được giải pháp thay thế. – vRallev