我用较旧的Android版本的工作室建到我的应用程序,现在我有最后version.When我想要做的apk签给我的错误,因为我想用ProGuard,并将proguard-rules.pro是不存在。我建立它手动在应用程序文件夹中,但我仍然遇到错误。当我删除'proguard-rules.pro'
到build.gradle问题是解决,但我想使用proguard与规则,因为总和类和sum文件不工作时minifyEnabled
是true
和'proguard-rules.pro'
从该代码proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
移入的build.gradle。的Android工作室签署了产生APK不working2
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. > java.io.FileNotFoundException: C:\Users\Hossein\Desktop\Root\app\proguard-rules.pro (The system cannot find the file specified) * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED
什么目录是在proguard-rules.pro文件? –
它在Root \ app \目录下 – Ethan