I'm experiencing the same issue here with Android Gradle plugin 0.12.2. The 
final application manifest has the library project's "local" applicationId 
instead of the app project's applicationId. I thought this was the purpose 
of substitutions such as ${applicationId}?

On Tuesday, July 1, 2014 6:11:11 AM UTC-10, Ryan Lepinski wrote:
>
> Hi,
>
> In an android library's manifest file, if I try to use the the built in 
> placeholder "applicationId" in the manifest it injects the package name of 
> the library instead of the package name of the parent application.
>
> Example library manifest:
>
> <?xml version="1.0" encoding="utf-8"?>
> <manifest xmlns:android="http://schemas.android.com/apk/res/android";
>           android:versionCode="1"
>           package="com.example.what"
>           android:versionName="1.0">
>
>     <application>
>
>         <receiver
>             android:name=".GCMPushReceiver"
>             android:permission="com.google.android.c2dm.permission.SEND">
>             <intent-filter>
>                 <action 
> android:name="com.google.android.c2dm.intent.RECEIVE"/>
>                 <action 
> android:name="com.google.android.c2dm.intent.REGISTRATION"/>
>                 <category android:name="${applicationId}"/>
>             </intent-filter>
>         </receiver>
>
>         <receiver
>             android:name=".ADMPushReceiver"
>             
> android:permission="com.amazon.device.messaging.permission.SEND">
>             <intent-filter>
>                 <action 
> android:name="com.amazon.device.messaging.intent.RECEIVE"/>
>                 <action 
> android:name="com.amazon.device.messaging.intent.REGISTRATION"/>
>                 <category android:name="${applicationId}"/>
>             </intent-filter>
>         </receiver>
>     </application>
>
> </manifest>
>
>
> Will replace all instances of ${applicationId} as com.example.what instead 
> of the parent application. If I try to add a custom placeholder value and 
> define in the parent applications build.gradle it results in a build error: 
> Manifest merger failed : Attribute category#${parentApplicationId}@name at 
> AndroidManifest.xml:46:27 requires a placeholder substitution but no value 
> for <parentApplicationId> is provided.
>
>
> Is there a way to work around this other than having the parent 
> application define the elements in its own manifest? It would be very 
> helpful to allow the library manifests to be automatically configured in 
> the parent application.
>
> Thanks,
> Ryan
>

-- 
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