breautek commented on issue #1563:
URL:
https://github.com/apache/cordova-android/issues/1563#issuecomment-1452422224
> Task :app:mergeReleaseResources FAILED
Generally this means it couldn't bundle a resource file for some reason. It
could be that something is referencing a resource that doesn't exists. It could
be one of your resources have malformed XML. A resource could be anything from
strings to physical files. For example, in your config you're manually adding
something reference a string resource `@string/multi_app_name` and if that
resource is not actually defined, you may receive the error you're experiencing.
I'm confident that the issue isn't caused by cordova-android.
cordova-android@10 only has basic resources for the icon, and
`cordova-plugin-splashscreen` handles the resources for splashscreens. Cordova
will prepare the android project correctly. However, frameworks and plugins
have the opportunity to modify, and potentially overwrite files, in which case
if they do and remove things that Cordova has configured, or overwrite them in
relating to resource files, it may trigger this issue.
Unfortuantely, AAPT (the android tools that handles this) doesn't make clear
what the actual problem is, therefore I cannot pinpoint the exact issue, I can
say it's likely caused by a plugin overwriting something that isn't suppose to,
or it's caused by:
```xml
<config-file parent="/manifest/application" platform="android"
target="AndroidManifest.xml">
<activity android:label="@string/multi_app_name"
android:name="com.synconset.MultiImageChooserActivity"
android:theme="@style/Theme.AppCompat.Light" />
</config-file>
```
Where nothing actually defines `@string/multi_app_name`.
I advise you to check the native project. I'm not sure where ionic places
things but a cordova project will place the native project at
`platforms/android`. The resources would be located at
`platforms/android/app/src/main/res` which will contain a series of folders.
By convention, things like `@string/multi_app_name` should be defined inside
one of the XML files inside `values/`
For example, Cordova will create `values/strings.xml` and define
`@string/app_name` resource via:
```
<string name="app_name">Your App Name</string>
```
Let me know if any of this information helps.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]