Hi,

I'm trying to figure out what's going wrong in my build process or whether 
I've encountered a bug.

I have a project that depends on both ExoPlayer and Google Play Services. 
These libraries both require READ_EXTERNAL STORAGE. In the past I haven't 
included these permissions directly in my app, and the generated 
AndroidManifest worked well for me.

With the latest version of the build tools, I see two lines in my generated 
manifest:

"
    <!-- For reading media from external storage. --> 
    <!-- I believe this is from ExoPlayer -->

    <uses-permission 
android:name="android.permission.READ_EXTERNAL_STORAGE" />


    <!-- I believe this is from Google Play Services -->

    <android:uses-permission

        android:name="android.permission.READ_EXTERNAL_STORAGE"

        android:maxSdkVersion="18" />

"

If I manually add an entry for READ_EXTERNAL_STORAGE to my app's 
AndroidManifest.xml, the generated manifest has only one entry:
"<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" 
/>"

An APK generated with the two manifest entries fails the Play Store APK 
validation, though it installs and runs on my development devices.

My guess here is that the manifest merger can't tell these two declarations 
are "the same" and so they both get included. 


Joe B

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to