九、app\build\intermediates\res\resources-xxx-stripped.ap_' specified for property 'res
app\build\intermediates\res\resources-xxx-stripped.ap_' specified for property 'resourceFile' does not exist.
1、問題定位:出現這種情況可以分析是資原始檔的問題,定位在build.gradle中的shrinkResources
2、解決方法:首先確定自己的專案是否要混淆,minifyEnabled 是否混淆,shrinkResources 是否移除無用的resource檔案
不用混淆的話寫下面兩句,或者直接去掉這兩句
android{
buildTypes {
release {
...
minifyEnabled false
shrinkResources false
}
}
}
用混淆的話寫下面兩句
minifyEnabled true
shrinkResources true
如果不混淆的話,apk就會多幾M;要混淆的話就必須要上面兩個為true,還有必須在混淆檔案中寫規則,不然又有另外一些錯誤。
相關推薦
九、app\build\intermediates\res\resources-xxx-stripped.ap_' specified for property 'res
app\build\intermediates\res\resources-xxx-stripped.ap_' specified for property 'resourceFile' does not exist. 1、問題定位:出現這種情況可以分析是資原
Android Studio Gradle app/build/intermediates/transforms/AspectTransform/debug
Unexpected scopes found in folder '某個路徑/app/build/intermediates/transforms/AspectTransform/debug'. Required: SUB_PROJECTS. Found: EXTERNAL_LIBRARIES
':app:clean'. > Unable to delete directory:app\build\intermediates
在android studio 開發時,莫名其妙的出現: Error:Execution failed for task ':app:clean'. > Unable to delete directory: D:\ProjiectName\app\
An invalid domain [.xxx.com] was specified for this cookie異常解決
開發十年,就只剩下這套架構體系了! >>>
[Swift4.2實際操作]九、完整例項-(6)建立App歡迎介面
1 import UIKit 2 3 class WelcomeViewController: BaseViewController { 4 5 override func viewDidLoad() { 6 super.viewDi
[Xcode10 實際操作]九、實用進階-(8)實現App的Setting設定:新增和讀取程式的配置資訊
本文將演示如何實現新增和讀取程式的配置資訊。 在專案資料夾【DemoApp】上點選滑鼠右鍵->【New File】建立一個設定束檔案 ->【Settings Bundle】設定束: 如果想要通過裝置的【設定】程式,來展示自定義的的偏好設定,必須先準備好一個設定束 ->【Next】-&
[Xcode10 實際操作]九、實用進階-(8)實現App的Setting設置:添加和讀取程序的配置信息
ren dtd www user capital 配置 演示 應用 default 本文將演示如何實現添加和讀取程序的配置信息。 在項目文件夾【DemoApp】上點擊鼠標右鍵->【New File】創建一個設置束文件 ->【Settings Bundle】設
[Xcode10 實際操作]九、實用進階-(29)為App新增IAP(支付方式)內購專案
首先請閱讀:[Xcode10 實際操作]九、實用進階-(28)在iTunes Connect(蘋果商店的管理後臺)中建立一個新的新的APP 本文將演示如何給剛剛建立的應用程式,新增IAP(支付方式)內購專案。 IAP,即in-App Purchase ,是一種智慧移動終端應用程式付費的模式, 在蘋果(A
android.content.res.Resources$NotFoundException: Resource ID XXX問題解決
最近遇到專案報這個錯誤,但是資源卻是存在的,在網上找了資料,clean,型別轉換,工程佔用,等等方法都試過了,均不能解決,最後發現,原來是這個原因。 這行報錯,但實際上我是有這個資源的。 但是,xml檔案旁邊有一個標誌:land,我不知道是什麼意思。 於是,我重新new
[Swift通天遁地]九、拔劍-(1)實現在程序中跳轉到微信、App Store、地圖
數量 style pods 安裝第三方 func val 方法 項目 ive 本文將演示如何從應用程序跳跳轉到微信、App Store、地圖等。 首先確保已經安裝了所需的第三方類庫。雙擊查看安裝配置文件【Podfile】 1 platform :ios, ‘12
[App Store Connect幫助]九、衡量 App 表現(1)分析和報告概述
sub 情況下 utc 目的 切換 使用 一段 世界 差異 App Store Connect 提供如下分析和報告,以衡量您 App 的表現並查看向您支付的最終付款。 App 分析 通過 App Store 展示次數、產品頁面查看次數、銷售額、App 使用次數等指標
第九、十章總結
功能 開發計劃 列表 步驟 包括 風險 use case 模板 經理 這第九章主要講述了團隊角色分工、項目經理的由來和要求、項目經理和其他經理的區別、軟件項目中的風險和風險管理、PM的專業能力。 PM的能力要求:1.觀察、理解和快速學習能力、2.分析管理能力
九、LAMP的安裝與配置
lamp安裝、配置9.1、PHP與httpd的結合工作方式常見PHP開源軟件: 論壇:phpwind、discuz 、phpbb 博客系統:wordpress 門戶站點:drupal、xooms 數據庫:phpMyAdmin、Workbench、MySQL Front、Navicat for MySQ
【BUG】android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi/toolbar_line.png from
設備 cati des dpi com rgs inflater from argument SafeGod在coolpad(4.0)上執行。登陸進去的設備列表界面遇到的問題。三星和索尼沒有這個問題。 06-24 15:23:06.897: E/AndroidRun
iOS-獲取Model(設備型號)、Version(設備版本)、app(程序版本)等
popu device style post short tar .html tex system IOS-獲取Model(設備型號)、Version(設備版本)、app(程序版本)等 NSLog(@"uniqueIdentifier: %@", [[UI
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f070058 android-studio 3.0 from canary 5 to canary 6
time cat -1 int pre lac patch check caused 我升級android-studio到了3.0 canary 6打包編譯安裝出現如下錯誤: 07-11 13:00:39.523 8913-8913/dcpl.com.myapplic
在AndroidManifest(清單文件)中註冊activity(活動)及配置主活動、更改App圖標、App名稱、修改隱藏標題欄
雙擊 建議 nba cat ima manager ram spa src 打開app/src/main/AndroidManifest。 1 <?xml version="1.0" encoding="utf-8"?> 2 <manifest xm
android.content.res.Resources$NotFoundException: String resource ID #0x11
resource sin native pla int ble invoke args traversal 在練習數據綁定時,出現以下錯誤 FATAL EXCEPTION: main
十九、動態加載腳本和樣式
所有 load 忽略 報錯 需求 flag mil ans n) 十九、動態加載腳本和樣式 本章主要講解上一章剩余的獲取位置的DOM方法、動態加載腳本和樣式。 1.元素位置 上一章已經通過幾組屬性可以獲取元素所需的位置,那麽這節課補充一個DOM的方法:getBoun
九、基於字符的I/O操作接口
reader 寫入 內容 網絡傳輸 編碼 writer 字符 read 但是 不管是磁盤還是網絡傳輸,最小的存儲單元都是字節,而不是字符,所以I/O操作的都是字節而不是字符,但是為什麽有操作字符的接口呢?這是因為在我們的程序中通常操作的都是字符的形式,為了操作方便當然要提供