DexterFstone در پستارور هنگام بیلد یک ارسال را به عنوان پاسخ، انتخاب کرد
فکنم سری پیش این خط از خطا را جا انداخته بودم
> Task :app:processDebugAndroidTestManifest FAILED
[androidx.versionedparcelable:versionedparcelable:1.1.1] C:\Users\Dexter\.gradle\caches\transforms-3\ec2eb3840be362e74ab25570b26da47c\transformed\versionedparcelable-1.1.1\AndroidManifest.xml Warning:
Namespace 'androidx.versionedparcelable' is used in multiple modules and/or libraries: androidx.versionedparcelable:versionedparcelable:1.1.1, com.android.support:versionedparcelable:28.0.0. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace
C:\Users\Dexter\AndroidStudioProjects\GodotPushPolePlugin\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest16082066546625039828.xml:28:18-86 Error:
Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.9.0] AndroidManifest.xml:28:18-86
is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at tempFile1ProcessTestManifest16082066546625039828.xml:7:5-9:19 to override.
See https://developer.android.com/r/studio-ui/build/manifest-merger for more information about the manifest merger.
ویرایش:
این خطا با قطعه زیر در گریدل حل شد ولی خطاهای قبلی پا برجایست
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.3.0'
}
}
}
}
خطاهلی قبلی هم با خط زیر حل شد
android.enableJetifier=true