Error on building Android native package


#1

Hello,

I have been trying to generate a .apk file using the Pro version, I am able to get it working on my local side doing a small change on the build.gradle file. I am not able to change that on the Pro version since this file is generated once I tell it to build for android (Aka. Cannot push to github it would not get the change).

Error:

Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:design:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

Fix on the local side that worked added line on build.gradle file:

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == ‘com.android.support’) {
// Skip multidex because it follows a different versioning pattern.
if (!requested.name.startsWith(“multidex”)) {
details.useVersion ‘25.3.0’
}
}
}
}