Android error on manifest on Huawei devices

已查看 374 次
跳至第一个未读帖子

Leonardo Sapuy

未读,
2019年5月30日 20:33:372019/5/30
收件人 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

未读,
2020年7月22日 11:06:382020/7/22
收件人 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

未读,
2020年7月30日 16:04:222020/7/30
收件人 android-platform
In my case, this only happens with HUAWEI Android 9 and Android 8 devices.
Does anyone know how to fix this? 
回复全部
回复作者
转发
0 个新帖子