Skip to content

Crash after “Application ID ( 232323232323) must be a numeric value.” #2013

@qbit86

Description

@qbit86

When I export to Gradle project and build APK in Android Studio, I get this error in run time and then application crashes:

E/ValidateServiceOp(7463): Application ID ( 232323232323) must be a numeric value. Please verify that your manifest refers to the correct project ID.
D/AndroidRuntime(8305): Shutting down VM
V/AlarmManager(2657): waitForAlarm result :8
E/AndroidRuntime(8305): Caused by: java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information.
E/AndroidRuntime(8305): 	at com.google.android.gms.common.internal.zze$zza.zzc(Unknown Source)
E/AndroidRuntime(8305): 	at com.google.android.gms.common.internal.zze$zza.zzv(Unknown Source)
E/AndroidRuntime(8305): 	at com.google.android.gms.common.internal.zze$zze.zzauc(Unknown Source)
E/AndroidRuntime(8305): 	at com.google.android.gms.common.internal.zze$zzd.handleMessage(Unknown Source)
E/AndroidRuntime(8305): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(8305): 	at android.os.Looper.loop(Looper.java:145)
E/AndroidRuntime(8305): 	at android.app.ActivityThread.main(ActivityThread.java:6917)
E/AndroidRuntime(8305): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(8305): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(8305): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
E/AndroidRuntime(8305): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

Looks like the problem is in leading space in app id. But this space in AndroidManifest is intentionally added via template XML:

<!-- the space in these forces it to be interpreted as a string vs. int -->
<meta-data android:name="com.google.android.gms.games.APP_ID"
    android:value="\ 232323232323" />

This does not happen when I build via Gradle directly without exporting; or if I use internal legacy build system.

Plugin: 0.9.36, Unity: 2017.2.0f2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions