我用較舊的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