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

Android build failed- cant generate Release APK #16

Open
geniushkg opened this issue Sep 5, 2022 · 4 comments
Open

Android build failed- cant generate Release APK #16

geniushkg opened this issue Sep 5, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@geniushkg
Copy link

Task :react-native-deepar:bundleDebugAar FAILED
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ‘:react-native-deepar:bundleDebugAar’.
Error while evaluating property ‘hasLocalAarDeps’ of task ‘:react-native-deepar:bundleDebugAar’
Direct local .aar file dependencies are not supported when building an AAR.

This happens when trying to build APK running on Debug mode / connected device works fine but cant generate build.

************************** To Overcome ********************************
packagingOptions {
pickFirst ‘lib/arm64-v8a/libnative-lib.so’
pickFirst ‘lib/arm64-v8a/libtensorflowlite_c.so’
pickFirst ‘lib/arm64-v8a/libtensorflowlite_gpu_delegate.so’
pickFirst ‘lib/arm64-v8a/libxzimgSDK.so’
pickFirst ‘lib/armeabi-v7a/libnative-lib.so’
pickFirst ‘lib/armeabi-v7a/libtensorflowlite_c.so’
pickFirst ‘lib/armeabi-v7a/libtensorflowlite_gpu_delegate.so’
pickFirst ‘lib/armeabi-v7a/libxzimgSDK.so’
pickFirst ‘lib/x86/libnative-lib.so’
pickFirst ‘lib/x86/libtensorflowlite_c.so’
pickFirst ‘lib/x86/libtensorflowlite_gpu_delegate.so’
pickFirst ‘lib/x86/libxzimgSDK.so’
pickFirst ‘lib/x86_64/libnative-lib.so’
pickFirst ‘lib/x86_64/libtensorflowlite_c.so’
pickFirst ‘lib/x86_64/libtensorflowlite_gpu_delegate.so’
pickFirst ‘lib/x86_64/libxzimgSDK.so’
}

Now the problem is it comes to full circle - If I do pickFirst then Error while evaluating property ‘hasLocalAarDeps’

If I dont do Pick first then previous issue also get 2 files found with same lib native issue occurs
https://stackoverflow.com/questions/70890854/2-files-found-with-path-lib-arm64-v8a-libc-shared-so-from-inputs-react-na
for tensorflowlite gpudelegate etc

Gradle version 7.3.3
Android Gradle plugin 7.1.1

@ridvanaltun ridvanaltun added the bug Something isn't working label Sep 6, 2022
@ridvanaltun
Copy link
Owner

Hi @geniushkg

I have no idea for this issue, can you give me a reproducible example?

@Dhruv2110
Copy link

Resolved in #23 (comment)

@shyammanek
Copy link

@ridvanaltun how developers use your Library.

@ZhaoXianMu
Copy link

@ridvanaltun @shyammanek
I have also same error - can't generate Release APk
How to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants