Error:A problem was found with the configuration of task ':app:packageDebug' 問題解決
以前的老專案,匯入到AndroidStudio 2.2.2時,報錯:
解決辦法 :
- Error:A problem was found with the configuration of task ':app:packageDebug'.
- > File 'E:\AndroidStudio\work\AUWoQu\YingYongShiChang\app\build\intermediates\res\resources-debug-stripped.ap_' specified for property 'resourceFile' does not exist.
解決辦法 :
開啟app的build.gradle
將shrinkResources 設定為false
- buildTypes {
- release {
- minifyEnabled true
- shrinkResources false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- debug {
- //開啟程式碼混淆
- minifyEnabled false
- // 移除無用的resource檔案
- shrinkResources false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
相關文章
- 解決bash: mysql: command not found的問題MySql
- Android gradle問題解決: This app has been built with an incorrect configuration. Please configure your b...AndroidGradleAPPUI
- 【AndroidStudio】Error:Execution failed for task ':app:preDebugAndroidTestBuild'.AndroidErrorAIAPPUI
- springboot專案解決 No beans of 'UserDao' type found 問題Spring BootBean
- 解決SpringBoot頁面localhost 404問題,即Whitelabel Error Page問題Spring BootlocalhostError
- npm ERR! Error: CERT_UNTRUSTED的問題解決NPMErrorRust
- mysql登入遇到ERROR 1045問題解決方法MySqlError
- 解決Parameter '__frch_item_0' not found. Available parameters 問題AI
- VScode git無法使用,Error: command 'git.push' not found 原始碼管理無法使用的問題及解決方法VSCodeGitError原始碼
- 解決 Jenkins 上 git 出現的 “ERROR: Error fetching remote repo 'origin'” 問題JenkinsGitErrorREM
- mysql的ERROR 1231 (42000)問題原因及解決方法MySqlError
- Laravel 6 ignition 解決 Class 'xxx' not found 載入緩慢問題Laravel
- 9.(轉)Spring Configuration Check Unmapped Spring configuration files foundSpringAPP
- 解決 Sorry,this Adobe app is not available 問題的方法APPAI
- 【問題解決】remote: parse error: Invalid numeric literal at line 1, column 20,解決思路REMError
- App\User 替換為 App\Models\User 的問題解決!APP
- Uncaught Error: Bootstrap‘s JavaScript requires jQuery報錯問題解決ErrorbootJavaScriptUIjQuery
- 藍橋杯搭建環境解決Kile 的Error: A9932E: MISSING DEVICE (R003: SECURITY KEY NOT FOUND) Target not created問題Errordev
- Phantom Problem(幻讀)問題
- 移動APP卡頓問題解決實踐APP
- glibc解決“libc.so.6: version GLIBC_2.14 not found”報錯問題
- 解決windows下WslRegisterDistribution failed with error: 0x80070050的問題WindowsAIError
- 解決git SSL certificate problemGit
- [Vue warn]: Error in render: "TypeError: Cannot read property 'matched' of undefined" found in <App> at src/App.vueVueErrorUndefinedAPP
- 記錄一次解決App崩潰問題的解決方案APP
- FeignClient註解屬性configuration不生效問題排查思路client
- 編譯ffmpeg遇到ERROR: x265 not found using pkg-config解決方法編譯Error
- 行者APP適配國外環境問題解決APP
- No Task Available解決方法AI
- Error: Cannot find configuration directory: /etc/hadoopErrorHadoop
- 一鍵解決App應用分發下載問題APP
- node: /lib64/libm.so.6: version `GLIBC_2.27‘ not found問題解決方案IBM
- 已解決:Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 問題
- sublime上配置java環境,解決Decode error - output not utf-8問題JavaError
- ISSAC GYM解決RuntimeError: nvrtc: error: invalid value for --gpu-architecture (-arch)的問題ErrorVRGPU
- 如何解決app閃退問題APP
- 記一次android app啟動錯誤 Error running :Default Activity not foundAndroidAPPError
- ORACLE SELECT INTO NO_DATA_FOUND問題Oracle
- iOS App 上架內購3.1.1問題被拒解決思路iOSAPP