Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RN 0.59.1 run fail #316

Closed
25juan opened this issue Mar 24, 2019 · 8 comments
Closed

RN 0.59.1 run fail #316

25juan opened this issue Mar 24, 2019 · 8 comments

Comments

@25juan
Copy link

25juan commented Mar 24, 2019

What react-native version are you using?
"react-native": "0.59.1"
What react-native-pdf version are you using?
"react-native-pdf": "^5.0.12"
What platform does your issue occur on? (android/ios/both)
android
Describe your issue as precisely as possible :
> Task :app:transformNativeLibsWithMergeJniLibsForDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.
> More than one file was found with OS independent path 'lib/x86/libc++_shared.so'

how can resolve this problem,please

@ghost
Copy link

ghost commented Mar 26, 2019

#318 PR attempt to fix it,
i had the same issue and it worked for me.

@surenderkhowal
Copy link

compileOptions {

}

// insert packagingOptions in android/app/build.gradle file

 packagingOptions {
       pickFirst 'lib/x86/libc++_shared.so'
       pickFirst 'lib/x86_64/libjsc.so'
       pickFirst 'lib/arm64-v8a/libjsc.so'
       pickFirst 'lib/arm64-v8a/libc++_shared.so'
       pickFirst 'lib/x86_64/libc++_shared.so'
       pickFirst 'lib/armeabi-v7a/libc++_shared.so'
     }
defaultConfig {
  
}

@valhallarossferrer
Copy link

compileOptions {

}

// insert packagingOptions in android/app/build.gradle file

 packagingOptions {
       pickFirst 'lib/x86/libc++_shared.so'
       pickFirst 'lib/x86_64/libjsc.so'
       pickFirst 'lib/arm64-v8a/libjsc.so'
       pickFirst 'lib/arm64-v8a/libc++_shared.so'
       pickFirst 'lib/x86_64/libc++_shared.so'
       pickFirst 'lib/armeabi-v7a/libc++_shared.so'
     }
defaultConfig {
  
}

It worked on me
"react-native": "0.59.5"

@wonday
Copy link
Owner

wonday commented May 28, 2019

I had added a notice to readme.
thanks @surenderkhowal

@wonday wonday closed this as completed May 28, 2019
@daveyleo
Copy link

This solution doesn't work for assembleAndroidTest target (Detox)

@AndyDyer
Copy link

@daveyleo

going through this exact problem, have you had any luck? saw you reply on the gradle forums too

@azharuddinkhan8898
Copy link

compileOptions {

}

// insert packagingOptions in android/app/build.gradle file

 packagingOptions {
       pickFirst 'lib/x86/libc++_shared.so'
       pickFirst 'lib/x86_64/libjsc.so'
       pickFirst 'lib/arm64-v8a/libjsc.so'
       pickFirst 'lib/arm64-v8a/libc++_shared.so'
       pickFirst 'lib/x86_64/libc++_shared.so'
       pickFirst 'lib/armeabi-v7a/libc++_shared.so'
     }
defaultConfig {
  
}

This increased my app size by almost 15MB. :(

@androidparth90
Copy link

having the same problem ? guys any solution on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants