gpt4 book ai didi

android - 为什么在构建APK后我的EXPO应用程序崩溃

转载 作者:行者123 更新时间:2023-12-02 07:29:19 28 4
gpt4 key购买 nike

应用程序无法打开
在更新代码并添加后:
Admob +
i18n-js本地化。
我认为它是本地化的,但我做对了,它在应用程序内的JSON是否有任何促销,例如wifi或类似的东西
我的app.json

{
"expo": {
"name": "vat 15%",
"description": "Fastest tax Added Calculator 15%",
"slug": "vatApp",
"platforms": [
"ios",
"android",
"web"
],
"version": "1.2.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"config": {
"googleMobileAdsAppId": "ca-app-pub-ideletetThis"
}
},
"android": {
"package": "com.ideletetThis.ideletetThis",
"versionCode": 2,
"config": {
"googleMobileAdsAppId": "ca-app-pub-i delete"
}
},
"sdkVersion": "38.0.0"
}
}
apk 上的 日志猫错误
 Process: com.myappname.ideletetThis, PID: 23538
java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException:

******************************************************************************
* Invalid application ID. Follow instructions here: https:// goo . gl/fQ2neu to *
* find your app ID. *
******************************************************************************

最佳答案

在Manifest.xml中添加以下元数据

<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value=**appID**/>

关于android - 为什么在构建APK后我的EXPO应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63145805/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com