-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Closed
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toolplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiont: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
Error message:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDevDebugJniLibFolders'.
> [arm64-v8a/libnative_regex_pcre2.so] /Users/Matej/Projects/superlist1/packages/superlist/build/native_assets/android/jniLibs/lib/arm64-v8a/libnative_regex_pcre2.so [arm64-v8a/libnative_regex_pcre2.so] /Users/Matej/Projects/superlist1/packages/superlist/build/native_assets/android/jniLibs/lib/arm64-v8a/libnative_regex_pcre2.so [arm64-v8a/libnative_regex_pcre2.so] /Users/Matej/Projects/superlist1/packages/superlist/build/native_assets/android/jniLibs/lib/arm64-v8a/libnative_regex_pcre2.so: Error: Duplicate resources
In this case there are three flavors and the library is added three times. I tracked it down to flutter.groovy where the nativeAssetDir is added to project.android.sourceSets.main.jniLibs.srcDir per flavor, even though the directory does not depend on the flavor. Should be easy to fix.
cc @dcharkes
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toolplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiont: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform teamTriaged by Android platform team