cordova-plugin-crosswalk-webview 導(dǎo)致打包失敗

版本

cordova-plugin-crosswalk-webview ^2.4.0
cordova-android ^7.1.4

報錯

:app:processArm64ReleaseManifest/Users/X/Documents/Code/app-order-tool/platforms/android/app/src/main/AndroidManifest.xml:26:5-74 Error:
uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /Users/X/Documents/Code/app-order-tool/platforms/android/CordovaLib/build/intermediates/manifests/full/release/AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 19,
or use tools:overrideLibrary="org.apache.cordova" to force usage (may lead to runtime failures)
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
:app:processArm64ReleaseManifest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processArm64ReleaseManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /Users/X/Documents/Code/app-order-tool/platforms/android/CordovaLib/build/intermediates/manifests/full/release/AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 19,
or use tools:overrideLibrary="org.apache.cordova" to force usage (may lead to runtime failures)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 46s
27 actionable tasks: 5 executed, 22 up-to-date
/Users/X/Documents/Code/app-order-tool/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/X/Documents/Code/app-order-tool/platforms/android/app/src/main/AndroidManifest.xml:26:5-74 Error:
uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /Users/X/Documents/Code/app-order-tool/platforms/android/CordovaLib/build/intermediates/manifests/full/release/AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 19,
or use tools:overrideLibrary="org.apache.cordova" to force usage (may lead to runtime failures)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processArm64ReleaseManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /Users/X/Documents/Code/app-order-tool/platforms/android/CordovaLib/build/intermediates/manifests/full/release/AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 19,
or use tools:overrideLibrary="org.apache.cordova" to force usage (may lead to runtime failures)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 46s

解決

修改platforms/android/cordova-plugin-crosswalk-webview/XXX-xwarlk.gradle

// 原來的
def DEFAULT_MIN_SDK_VERSION = 14 
// 修改后
def DEFAULT_MIN_SDK_VERSION = 19
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末翅娶,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌粥脚,老刑警劉巖影涉,帶你破解...
    沈念sama閱讀 219,110評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件夏跷,死亡現(xiàn)場離奇詭異扁藕,居然都是意外死亡磷蛹,警方通過查閱死者的電腦和手機烘浦,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,443評論 3 395
  • 文/潘曉璐 我一進店門抖坪,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人闷叉,你說我怎么就攤上這事擦俐。” “怎么了握侧?”我有些...
    開封第一講書人閱讀 165,474評論 0 356
  • 文/不壞的土叔 我叫張陵蚯瞧,是天一觀的道長。 經(jīng)常有香客問我品擎,道長埋合,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,881評論 1 295
  • 正文 為了忘掉前任萄传,我火速辦了婚禮甚颂,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己振诬,他們只是感情好瓣铣,可當(dāng)我...
    茶點故事閱讀 67,902評論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著贷揽,像睡著了一般棠笑。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上禽绪,一...
    開封第一講書人閱讀 51,698評論 1 305
  • 那天蓖救,我揣著相機與錄音,去河邊找鬼印屁。 笑死循捺,一個胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的雄人。 我是一名探鬼主播从橘,決...
    沈念sama閱讀 40,418評論 3 419
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼础钠!你這毒婦竟也來了恰力?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,332評論 0 276
  • 序言:老撾萬榮一對情侶失蹤旗吁,失蹤者是張志新(化名)和其女友劉穎踩萎,沒想到半個月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體很钓,經(jīng)...
    沈念sama閱讀 45,796評論 1 316
  • 正文 獨居荒郊野嶺守林人離奇死亡香府,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,968評論 3 337
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了码倦。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片企孩。...
    茶點故事閱讀 40,110評論 1 351
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖袁稽,靈堂內(nèi)的尸體忽然破棺而出勿璃,到底是詐尸還是另有隱情,我是刑警寧澤运提,帶...
    沈念sama閱讀 35,792評論 5 346
  • 正文 年R本政府宣布蝗柔,位于F島的核電站,受9級特大地震影響民泵,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜槽畔,卻給世界環(huán)境...
    茶點故事閱讀 41,455評論 3 331
  • 文/蒙蒙 一栈妆、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦鳞尔、人聲如沸嬉橙。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,003評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽市框。三九已至,卻和暖如春糕韧,著一層夾襖步出監(jiān)牢的瞬間枫振,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,130評論 1 272
  • 我被黑心中介騙來泰國打工萤彩, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留粪滤,地道東北人。 一個月前我還...
    沈念sama閱讀 48,348評論 3 373
  • 正文 我出身青樓雀扶,卻偏偏與公主長得像杖小,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子愚墓,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 45,047評論 2 355

推薦閱讀更多精彩內(nèi)容