-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
x/mobile: build doesn't include libc++_shared.so to produced .aar file and app crashes #50157
Comments
What version of Android you are running on and what SDK version you're using? Thanks. |
Running on Android 10 (API 29). But i think the bug maybe because of my wrong use of |
@cherrymui The builders on Corellium are running Android 9 and the installed NDK version is 23b. |
请问我是要换NDK版本吗? 当前是 |
Can you maybe provide a minimal example to show your build process? The previous description is not clear as the project that you claim to build is not clear to us too. |
OK1download some repositories(
2here is my code(only 17 lines)
3use
this step will output an .aar file(named 4copy the
5create a buttun in my Android app, when click, call the
6build and run the Android project. the app run successfully. But when i click the buttun which call a method
|
I've also run into this issue. Same reproduction. One of the dependencies for anacrolix/torrent (probably anacrolix/go-libutp) uses C++. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
I use the open source project
github.com/anacrolix
, and want to build an Android aar for my project.After
gomobile bind -v -target=android ./android/
, successfully exported an .aar file for me. Then i import the aar to my project useimplementation files('libs/bt.aar')
. The apk build successfully too. But when i launch the apk and cal the method in aar,likeSDK.Start
, my app crashed. Here is the error logWhat did you expect to see?
apk run successful
What did you see instead?
crashed
The text was updated successfully, but these errors were encountered: