Can't update my app in Google Play: aapt error
Asked Answered
E

5

4

Today when I tried to upload an update of my app, I got this from Google Play console:

UPLOAD NEW APK TO PRODUCTION

Upload failed Your APK cannot be analyzed using 'aapt dump badging'. Error output: Failed to run aapt dump badging: ERROR getting 'android:value' attribute for meta-data:attribute could not be found

I can upload normally before. I haven't made any change in AndroidManifest.xml. The app is built via ant. I also tried building it again, even with the last-known-good code, the same error occurs.

Should I report this to Google Play team, or is it a known issue of Google Play? Is there any work around?

Enloe answered 16/10, 2013 at 6:28 Comment(4)
Did you used the same certificate you used when you upload the app?Lauryn
Yes. My ant configuration will use the same certificate everytime. Anyway, the error message isn't about certificate.Enloe
I have the same issue. I tried uploading the same APK as the current release and got the same result. So the problem is on Google's side...Thermic
This problem is neither fixed nor acknowledged support.google.com/googleplay/android-developer/known-issues/…Thermic
R
5

It's now acknowledged by Google:

Some developers have reported seeing the error "Failed to run aapt dump badging: ERROR getting 'android:value' attribute for meta-data:attribute could not be found" when attempting to upload their .apk.

We're working on solving this problem. In the meantime, you can try adding the "android:value" to any meta-data manifest property that lacks that attribute. See API Guides - for more information.

https://support.google.com/googleplay/android-developer/known-issues/24493

Rior answered 17/10, 2013 at 22:38 Comment(0)
C
3

I had the exact same problem, but managed to fix it now. The problem is definitely in your manifest file. For me it was the Samsung MultiWindow feature. I found the solution here: Google Code Issue 46311

I had to change

        <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:resource="@dimen/app_defaultsize_w"/>
    <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:resource="@dimen/app_defaultsize_h"/> 

into

        <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="632dp"/>
    <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:value="598dp"/>        

Worked fine since yesterday, but now i had to change it. Hope it helps.

Cairo answered 17/10, 2013 at 6:32 Comment(0)
W
1

Same problem here after generating new apk for alpha release with same certificate I get the error (in Dutch):

Upload mislukt

Uw APK kan niet worden geanalyseerd met 'aapt dump badging'. Foutuitvoer:

Failed to run aapt dump badging: ERROR getting 'android:value' attribute for meta-data:attribute could not be found

I found one place in my Manifest where I use android:value for samsun multiwindow support.

<meta-data
        android:name="com.sec.android.support.multiwindow"
        android:value="true" />

I removed that from the Manifest. generated new apk (after project clean rebuild) and got the same error. This Manifest worked in my apk when uploading a previous version two weeks ago.

Washer answered 16/10, 2013 at 21:27 Comment(0)
E
1

Use

android:name="some string value"

Instead of

android:name="@string/name_of_string_resource"
Escallop answered 25/9, 2018 at 12:15 Comment(0)
H
0

In my case, when building for ionic I forgot to add the .aab extension in the command land I entered this into the cmd line

zipalign -v 4 app-release.aab appname_2.0.0

instead of

zipalign -v 4 app-release.aab appname_2.0.0.aab

Hoad answered 11/2, 2021 at 19:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.