laigf
laigf
  • 发布:2024-10-25 10:27
  • 更新:2024-10-30 09:54
  • 阅读:130

上传 google play 使用内部测试 aab 包报 Appkey is not configured or configured incorrectly 错误,apk 可以正常安装运行

分类:uni-app

上传 google play 使用内部测试 aab 报附件图中 Appkey is not configured or configured incorrectly 错误
注:
同代码 apk 可以正常安装运行
问题手机为 android 14 手机,targetSdkVersion 34
之前是安装后白屏(apk正常),添加下面这段后出现问题描述中错误

packagingOptions {
jniLibs {
useLegacyPackaging true
}
}

下面两段也加了
android:extractNativeLibs="true"
android.bundle.enableUncompressedNativeLibs=false

其他信息
gradle 8.0
classpath 'com.android.tools.build:gradle:8.0.2'

2024-10-25 10:27 负责人:无 分享
已邀请:
laigf

laigf (作者)

adb 日志 :

10-25 15:41:51.340 4269 4308 I WindowManager: Reparenting to leash, surface=Surface(name=38eb1e6 未配置appkey或配置错误)/@0xd0817be, leashParent=Surface(name=ActivityRecord{30684e8 u0 hk.cuhkmc.ppp/io.dcloud.PandoraEntryActivity t744})/@0x26496ee
10-25 15:41:51.341 3901 5393 I SurfaceFlinger: id=2611 createSurf (0x0),-1 flag=24004, Surface(name=38eb1e6 未配置appkey或配置错误)/@0xd0817be - animation-leash#0
10-25 15:41:51.342 4269 4308 D WindowManager: makeSurface duration=2 leash=Surface(name=Surface(name=38eb1e6 未配置appkey或配置错误)/@0xd0817be - animation-leash)/@0xea2301f
10-25 15:41:51.345 3901 5393 I SurfaceFlinger: id=2612 createSurf (0x0),-1 flag=20004, Dim Layer for - Task=744#0
10-25 15:41:51.346 4269 4308 I WindowManager: Reparenting to leash, surface=Surface(name=Dim Layer for - Task=744)/@0xcb21f6c, leashParent=Surface(name=Task=744)/@0x4e4f78f
10-25 15:41:51.347 3901 5393 I SurfaceFlinger: id=2613 createSurf (0x0),-1 flag=24000, Surface(name=Dim Layer for - Task=744)/@0xcb21f6c - animation-leash#0
10-25 15:41:51.348 4269 4308 D WindowManager: makeSurface duration=1 leash=Surface(name=Surface(name=Dim Layer for - Task=744)/@0xcb21f6c - animation-leash)/@0x6f27935
10-25 15:41:51.353 4269 4555 D SensorService: [SO] 0.261 -0.128 9.729
10-25 15:41:51.363 4269 15717 I SystemUiVisibilityPolicyController: handleMessage: entry what = 1
10-25 15:41:51.363 8486 8486 I TrayStateController: systemUiVisibilityChanged : 0 0
10-25 15:41:51.364 4797 4797 D NavigationBar: onSystemBarAppearanceChanged() - displayId:0, appearance:0, navbarColorManagedByIme:false
10-25 15:41:51.364 4797 4797 V Navbar.Store: handleEvent [EventType] GET_BOOL_REGION_SAMPLING_ENABLED [Module] LightBarController KEYS_DEFAULT=false
10-25 15:41:51.365 4797 4797 V Navbar.Store: --[Band]COLOR_PACK_GET_REGION_SAMPLING_ENABLED
10-25 15:41:51.365 4797 4797 V Navbar.Store: ----getValue(BOOL_REGION_SAMPLING_ENABLED)=false
10-25 15:41:51.368 4269 6279 I InputDispatcher: Focus entered window (14450): 38eb1e6 in display 0 0
10-25 15:41:51.382 14450 14450 I ViewRootImpl@e8e087c[PandoraEntryActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1
10-25 15:41:51.393 3901 3901 D SurfaceFlinger: Display 0 HWC layers:
10-25 15:41:51.393 3901 3901 D SurfaceFlinger: DEVICE | 0x7e2a614580 | 0000 | RGBA_8888 | 0.0 0.0 720.0 1560.0 | 0 0 720 1560 | hk.cuhkmc.ppp/io.dcloud.PandoraEntryActivity$_14450#0
10-25 15:41:51.393 3901 3901 D SurfaceFlinger: SOLID_COLOR | | 0000 | Unknown | 0.0 0.0 0.0 0.0 | 0 0 720 1560 | Dim Layer for - Task=744#0
10-25 15:41:51.393 3901 3901 D SurfaceFlinger: DEVICE | 0x7eae70c9c0 | 0000 | RGBA_8888 | 4.0 0.0 724.0 255.0 | 0 683 720 938 | 未配置appkey或配置错误$_14450#0
10-25 15:41:51.393 3901 3901 D SurfaceFlinger: DEVICE | 0x7eae70be80 | 0000 | RGBA_8888 | 0.0 0.0 67.0 228.0 | 0 267 67 495 | com.samsung.android.app.cocktailbars[...]arservice.CocktailBarService$_8486#0
10-25 15:41:51.393 3901 3901 D SurfaceFlinger: DEVICE | 0x7eae70b840 | 0000 | RGBA_8888 | 0.0 0.0 720.0 84.0 | 0 1476 720 1560 | NavigationBar0$_4797#0
10-25 15:41:51.393 3901 3901 D SurfaceFlinger: DEVICE | 0x7eae70c880 | 0000 | RGBA_8888 | 0.0 0.0 720.0 101.0 | 0 0 720 101 | ScreenDecorOverlay$_4797#0
10-25 15:41:51.393 3901 3901 D SurfaceFlinger: DEVICE | 0x7eae70c240 | 0000 | RGBA8888 | 0.0 0.0 720.0 101.0 | 0 1459 720 1560 | ScreenDecorOverlayBottom$
10-25 15:41:51.393 3901 3901 D SurfaceFlinger: 4797#0
10-25 15:41:51.393 3901 3901 D SurfaceFlinger:
10-25 15:41:51.399 14450 14450 I ViewRootImpl@5e654c1[未配置appkey或配置错误]: MSG_WINDOW_FOCUS_CHANGED 1 1
10-25 15:41:51.469 4722 4722 I wpa_supplicant: Heartbeat 5037
10-25 15:41:51.639 4269 4333 D PowerManagerService: UserActivityStateListenerState: 0
10-25 15:41:51.666 4269 4308 I WindowManager: Reparenting to original parent: Surface(name=ActivityRecord{30684e8 u0 hk.cuhkmc.ppp/io.dcloud.PandoraEntryActivity t744})/@0x26496ee, destroy=true, surface=Surface(name=38eb1e6 未配置appkey或配置错误)/@0xd0817be
10-25 15:41:51.666 4269 4308 I SurfaceControl: nativeRelease nativeObject s[518008971072]
10-25 15:41:51.666 4269 4308 I SurfaceControl: nativeRelease nativeObject e[518008971072]
10-25 15:41:51.669 3901 5393 I Layer : id=2611 removeFromCurrentState Surface(name=38eb1e6 未配置appkey或配置错误)/@0xd0817be - animation-leash#0 (106)
10-25 15:41:51.671 3901 5393 I SurfaceFlinger: id=2611 Removed Surface(name=38eb1e6 未配置appkey或配置错误)/@0xd0817be - animation-leash#0 (106)
10-25 15:41:51.672 4269 4308 I WindowManager: Reparenting to original parent: Surface(name=Task=744)/@0x4e4f78f, destroy=true, surface=Surface(name=Dim Layer for - Task=744)/@0xcb21f6c
10-25 15:41:51.672 4269 4308 I SurfaceControl: nativeRelease nativeObject s[518008964160]
10-25 15:41:51.672 4269 4308 I SurfaceControl: nativeRelease nativeObject e[518008964160]
10-25 15:41:51.682 3901 3901 I Layer : id=2611[1] Destroyed Surface(name=38eb1e6 未配置appkey或配置错误)/@0xd0817be - animation-leash#0
10-25 15:41:51.683 6344 6344 I SDHMS:n : writeSysfs:: path = /dev/cpuset/foreground/cpus, value = 0-7
10-25 15:41:51.685 3901 4297 I Layer : id=2613 removeFromCurrentState Surface(name=Dim Layer for - Task=744)/@0xcb21f6c - animation-leash#0 (105)
10-25 15:41:51.687 3901 5393 I SurfaceFlinger: id=2613 Removed Surface(name=Dim Layer for - Task=744)/@0xcb21f6c - animation-leash#0 (105)
10-25 15:41:51.699 3901 3901 I Layer : id=2613[1] Destroyed Surface(name=Dim Layer for - Task=744)/@0xcb21f6c - animation-leash#0
10-25 15:41:51.847 4269 4684 D PkgPredictorService-NapPreloadController: [ML] Sent pkg = com.fortinet.forticlient_vpn uid: 0 type: ml
10-25 15:41:51.858 4269 5176 I ActivityManager: [ML][SD] app:com.fortinet.forticlient_vpn is exist findPkgforMl:false isOnMemory:true
10-25 15:41:51.859 14450 14505 I System.out: (HTTPLog)-Static: isSBSettingEnabled false
10-25 15:41:51.859 14450 14505 I System.out: (HTTPLog)-Static: isSBSettingEnabled false
10-25 15:41:51.861 3829 3894 E Netd : getNetworkForDns: getNetId from enterpriseCtrl is netid 0
10-25 15:41:52.189 4269 7071 I system_server: Explicit concurrent copying GC freed 266348(15MB) AllocSpace objects, 88(3148KB) LOS objects, 30% free, 54MB/78MB, paused 265us total 481.571ms

laigf

laigf (作者)

classpath 'com.android.tools.build:gradle:8.1.2' 添加
packagingOptions {
jniLibs {
useLegacyPackaging true
}
}
或者 classpath 'com.android.tools.build:gradle:8.0.2' 添加
android.bundle.enableUncompressedNativeLibs=false
后输出上面的日志
compilesdk 34
targetsdkversion 34

DCloud_Android_ST

DCloud_Android_ST

你是离线打包 appkey 配置了没 aab提供下

  • laigf (作者)

    apk 可以正常安装

    2024-10-25 16:09

  • laigf (作者)

    从google 市场历史包里下载的 34+ 的会包这个错,34 以内的不会,签名都是被重签过的

    2024-10-25 18:31

  • laigf (作者)

    app signing key 更新了一下,新的和本地的签名一样了,但上传 aab 的时候还是会签成老的,老的现在的状态是 Legacy Not available usage 100%

    2024-10-28 15:18

  • DCloud_Android_ST

    回复 laigf: 看是否加入了谷歌的签名计划 可能是则个原因导致签名不统一

    2024-10-28 16:14

  • laigf (作者)

    回复 DCloud_Android_ST: 加入了,但我更新了和证书(和 dcloud 后台相同的证书),现在 google signing 上有两张证书,一张应该是 google 自动生成的,一张是我上传的,google 还是使用老的证书去签名

    2024-10-30 09:54

  • laigf (作者)

    回复 DCloud_Android_ST: 在请求升级密钥之前,请务必先了解升级完成后您可能需要做出的更改。


    如果您为多个应用使用相同的应用签名密钥,以便在它们之间共享数据/代码,则您需要更新这些应用以使它们能够同时识别新旧两版应用签名密钥证书。在搭载 Android S(API 级别 32)或更低版本的设备上,为了共享数据/代码,Android 平台只会识别旧版应用签名密钥证书。

    如果您的应用使用 API,请务必在发布更新之前先在 API 提供商那里注册新旧两版应用签名密钥的证书,以确保 API 能继续正常运行。您可以在 Play 管理中心的 Play 应用签名页面(发布版本 > 设置 > 应用签名)上找到相应证书。

    如果您有任何用户通过点对点共享安装更新,那么只有当要安装的更新的签名密钥与其已安装的应用版本所用的密钥相同时,他们才能安装。如果用户的应用版本因使用不同的签名密钥而无法更新,则可以选择卸载并重新安装应用以获取更新。

    是否有新旧两版的签名设置入口

    2024-10-30 17:29

要回复问题请先登录注册