亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

無效的 splitapk 捆綁包。捆綁包目標未知語言:[gr]

無效的 splitapk 捆綁包。捆綁包目標未知語言:[gr]

慕無忌1623718 2023-07-19 17:05:18
上傳應用程序包失敗。當我更改依賴項的版本后> classpath 'com.android.tools.build:gradle:3.5.0'3.4.1至3.5.0我收到這個錯誤。我用這個方法解決了,但它是真是假我不知道見下文> bundle {>     density {>         // Different APKs are generated for devices with different screen densities; true by default.>         enableSplit true>     }>     abi {>         // Different APKs are generated for devices with different CPU architectures; true by default.>         enableSplit true>     }>     language {>         // This is disabled so that the App Bundle does NOT split the APK for each language.>         // We're gonna use the same APK for all languages.>         enableSplit false>     } }
查看完整描述

1 回答

?
湖上湖

TA貢獻2003條經驗 獲得超2個贊

有兩種方法


1)第一種方法


我使用此方法解決了這個問題,但它僅適用于英語


無效的 SplitApkBundle。該捆綁包針對未知語言:[gr]。


defaultConfig {

    ...

    resConfigs "en" }

2)第二種方法


bundle {

    density {

        // Different APKs are generated for devices with different screen densities; true by default.

        enableSplit true

    }

    abi {

        // Different APKs are generated for devices with different CPU architectures; true by default.

        enableSplit true

    }

    language {

        // This is disabled so that the App Bundle does NOT split the APK for each language.

        // We're gonna use the same APK for all languages.

        enableSplit false

    }

}


查看完整回答
反對 回復 2023-07-19
  • 1 回答
  • 0 關注
  • 149 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號