[@nativescript/pdf] In NS 8.5, building for Android fails with a "Execution failed for task ':app:mergeDebugNativeLibs'." when using @nativescript/pdf#505
[@nativescript/pdf] In NS 8.5, building for Android fails with a "Execution failed for task ':app:mergeDebugNativeLibs'." when using @nativescript/pdf#505NathanWalker merged 2 commits intoNativeScript:mainfrom alexander-mai:issue/503
Conversation
* @nativescript/pdf * replaces TalbotGooday:AndroidPdfViewer with pdfium-android-viewer (a fork of andob) because * fixed the problem with duplicate libc++ library on @nativescript/android:8.5 * generated updated typescript definitions for pdfium-android-viewer
|
@alexander-mai nice work, were there any TS changes needed from the gradle package updates? |
|
No, there were no TS changes. I tested on my personal apps and the typescript demo without any problem. I was not able to test against the angular-demo because I got the error on |
@alexander-mai thank you 👍🏻 |
This error is not related to the PDF plugin. It is rather an issue of that |
Hello @grigala, |
You should be able to test it, just remove https://github.com/NativeScript/plugins/blob/main/apps/demo-angular/package.json#L18 line locally to get rid of that errror. 😉 |
|
Thank you for the tip @grigala. I hope it could be merged soon @NathanWalker. |
|
Thank you and sorry for delay @alexander-mai we’ll get this published by Monday. |
|
@alexander-mai we need to revert this - looks like original plugin works fine but the changes here don't build at all? |
This reverts commit 9b95094.
|
I can't reproduce the problem. I got some build errors with other plugins (contacts, camera, background-http). |
|
FWIW these are the changes I use to overcome this problem // App_Resources/Android/app.gradle
android {
//..
packagingOptions {
pickFirst 'lib/x86/libc++_shared.so'
pickFirst 'lib/x86_64/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
pickFirst 'lib/arm64-v8a/libc++_shared.so'
}
//..
} |
|
Because packagingOptions.pickFirst is deprecated (https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/PackagingOptions#pickFirst(kotlin.String)), I switched to packagingOptions.jniLibs.pickFirsts This worked fine for me @insytes. |
|
Can you recheck the problem @NathanWalker? I am using the fix without any problem on packaging the module or building my apps. |
fixes #503