tsubauaaa / flutter_d2go

Flutter plugin that runs d2go
BSD 3-Clause "New" or "Revised" License
10 stars 10 forks source link

Fix to "More than one file was found with OS independent path" error #10

Open bryantwilliam opened 2 years ago

bryantwilliam commented 2 years ago

If you get this error, just add to your app/src/build.gradle:

android {
    packagingOptions {
        pickFirst 'lib/arm64-v8a/libfbjni.so'
        pickFirst 'lib/arm64-v8a/libpytorch_jni_lite.so'
        pickFirst 'lib/armeabi-v7a/libfbjni.so'
        pickFirst 'lib/armeabi-v7a/libpytorch_jni_lite.so'
        pickFirst 'lib/x86/libfbjni.so'
        pickFirst 'lib/x86/libpytorch_jni_lite.so'
        pickFirst 'lib/x86_64/libfbjni.so'
        pickFirst 'lib/x86_64/libpytorch_jni_lite.so'
    }
}

and it will solve the issue. Also, make sure minSdkVersion is 28 atleast.

tsubauaaa commented 2 years ago

@bryantwilliam Thank you for the information. I would like to know your development environment. Can you tell us about the following?

I did not get that error in my development environment. My development environment is as follows

Thank you.

bryantwilliam commented 2 years ago

Android OS version -> 11.0 Android Studio version -> 2021.2.1 Patch 2 Flutter version -> 3.0.5 (channel stable)

tsubauaaa commented 2 years ago

@bryantwilliam I did not get the ERROR even with Android OS 11.0. It may be a device dependent issue. Thanks for the information.