OpenVPN / openvpn

OpenVPN is an open source VPN daemon
http://openvpn.net
Other
10.84k stars 2.99k forks source link

Merge debug native libs issue keep coming while connecting with other packages in flutter #626

Open utso1707097 opened 4 days ago

utso1707097 commented 4 days ago

A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction

2 files found with path 'lib/arm64-v8a/libgojni.so' from inputs:

  • /Users/user/.gradle/caches/transforms-3/686b62b632b492f3fbe33560dc9ab481/transformed/jetified-openvpn_library-5f06771b85/jni/arm64-v8a/libgojni.so
  • /Users/user/.gradle/caches/transforms-3/d8210b80163f3128e88629f40b7e6045/transformed/jetified-libv2ray/jni/arm64-v8a/libgojni.so If you are using jniLibs and CMake IMPORTED targets, see
 I am facing this error. I used the pickFirst in packagingOptions but that excluded some functionality of one of the conflicting library. I don't have any idea of how to resolve the issue.

 packagingOptions {

// pickFirst 'lib/arm64-v8a/libgojni.so' // pickFirst 'lib/armeabi-v7a/libgojni.so' // pickFirst 'lib/x86/libgojni.so' // pickFirst 'lib/x86_64/libgojni.so' } // I have tried this one but that results runtime error

My gradle version is 7.5

schwabe commented 4 days ago

I think you are reporting on the wrong repository. OpenVPN uses cmake or autoconf to build but not gradle. This looks like an Android build but the errors don't look like any official version. Also keep in mind that OpenVPN is under GPL.