You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if I'm asking a vague and very lengthy question, but I'm not sure if it's a real issue or a misconfiguration in my build. I'm trying to add the following dependency:
And this is what I get during a regular mvn clean package command:
...\app-android\target\unpacked-libs\cgma_android-maps-utils-apklib_0.4.2\AndroidManifest.xml:7: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
at com.simpligility.maven.plugins.android.CommandExecutor$Factory$DefaultCommandExecutor.executeCommand(CommandExecutor.java:248)
at com.simpligility.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateRForApkLibDependency(GenerateSourcesMojo.java:1047)
If I add the missing resources manually, say:
<aaptExtraArgs>
<!-- this is necessary to unpack com.google.maps.android:android-maps-utils-apklib:0.4.2:apklib -->
<aaptExtraArg>-S</aaptExtraArg>
<aaptExtraArg>${project.build.directory}/unpacked-libs/cgag_play-services_6.5.87/res</aaptExtraArg>
</aaptExtraArgs>
or
<resourceOverlayDirectories>
<!-- this is necessary to unpack com.google.maps.android:android-maps-utils-apklib:0.4.2:apklib -->
<resourceOverlayDirectory>${project.build.directory}/unpacked-libs/cgag_play-services_6.5.87/res</resourceOverlayDirectory>
</resourceOverlayDirectories>
I get a slightly different error:
\app-android\target\unpacked-libs\cgag_play-services_6.5.87\res\values\admob_ads_attrs.xml:10: error: Attribute "adSize" has already been defined
\app-android\target\unpacked-libs\cgag_play-services_6.5.87\res\values\admob_ads_attrs.xml:17: error: Attribute "adSizes" has already been defined
...
This happens because the resource gets into the generated command twice:
(please note -S ...\app-android\target/unpacked-libs/cgag_play-services_6.5.87/res occurring two times). However, now it fails in another method, generateR():
at com.simpligility.maven.plugins.android.CommandExecutor$Factory$DefaultCommandExecutor.executeCommand(CommandExecutor.java:248)
at com.simpligility.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:895)
In short, specifying no additional dependency-related parameters does not add any mention to generated commands, but specifying any of <aaptExtraArgs> or <resourceOverlayDirectories> causes the dependency resources to occur twice.
Could you please confirm whether it works as expected, or I just do it totally wrong? Thank you!
The text was updated successfully, but these errors were encountered:
Hi,
Sorry if I'm asking a vague and very lengthy question, but I'm not sure if it's a real issue or a misconfiguration in my build. I'm trying to add the following dependency:
And this is what I get during a regular
mvn clean package
command:The actual generated command is:
failing at generateRForApkLibDependency()
If I add the missing resources manually, say:
or
I get a slightly different error:
This happens because the resource gets into the generated command twice:
(please note
-S ...\app-android\target/unpacked-libs/cgag_play-services_6.5.87/res
occurring two times). However, now it fails in another method, generateR():In short, specifying no additional dependency-related parameters does not add any mention to generated commands, but specifying any of
<aaptExtraArgs>
or<resourceOverlayDirectories>
causes the dependency resources to occur twice.Could you please confirm whether it works as expected, or I just do it totally wrong? Thank you!
The text was updated successfully, but these errors were encountered: