Android error on manifest on Huawei devices

370 views
Skip to first unread message

Leonardo Sapuy

unread,
May 30, 2019, 8:33:37 PM5/30/19
to android-platform
Hi everyone, I'm working in an android app of massive use, this app has been working for more than 5 years, but strangly, last week we implement some new libraries (including mediarouter-v7 and animated-vectpr-drawable from google), After these change, we are having some issues only on Huawei devices (android 8+), the log show us this stack trace

java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  Expected 12451000 but found 4323000.  You must have the following declaration within the <application> element:     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

In manifest we have properly the meta-data tags
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXX" />


And if we follow the value we can find that the value is the correct
<eat-comment/>
<integer name="google_play_services_version">12451000</integer>

Has anyone some idea about this error?. thanks a lot

App Developer

unread,
Jul 22, 2020, 11:06:38 AM7/22/20
to android-platform
hi i have same too. 

devices:
HUAWEI Y6 2019
HUAWEI Y5 2019

google play library version: 17.1.1
implementation "com.google.android.gms:play-services-basement:17.1.1"

error log:
Fatal Exception: java.lang.IllegalStateException
The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 12451000 but found 4323000. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

31 Mayıs 2019 Cuma tarihinde saat 03:33:37 UTC+3 itibarıyla Leonardo Sapuy şunları yazdı:

Jackma Captain

unread,
Jul 30, 2020, 4:04:22 PM7/30/20
to android-platform
In my case, this only happens with HUAWEI Android 9 and Android 8 devices.
Does anyone know how to fix this? 
Reply all
Reply to author
Forward
0 new messages