-
Notifications
You must be signed in to change notification settings - Fork 18k
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: some .aar's import and build in android studio but some dont #30192
Comments
Are you including more than one "class" in this build? I have had weird stuff happen when there is more than one package in the bind. |
Well its it no my go app that im building but yes I think it does, looking at the classes.jar file should this be an issue? |
I would try to boil it down to one and see if that fixes the issue. I think that is a problem but, isolating the issue helps to fix it. |
Ill try that, any ideas why gomobile would add multiple classes instead of
just one?
…On Wed, Feb 13, 2019 at 1:34 AM Taylor Bartlett ***@***.***> wrote:
I would try to boil it down to one and see if that fixes the issue. I
think that is a problem but, isolating the issue helps to fix it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#30192 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGRBN4wZHLaKxRSltzUM1tjJD5WBntjDks5vMu0egaJpZM4a2VRc>
.
|
Without seeing the code I couldn't tell you, any type that you export can potentially have its own class. |
What is the exact gomobile command you use? Does it work in a gradle project where you manually add the dependency? For example, you could try to use the "example" project with your .aar file instead of the hello.aar. |
@eliasnaur thanks for the reply, I got a new macbook and installed everything from scratch and seems to work now, so im putting it down to do my old macs environment, maybe android sdk wasnt set up correctly |
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
)?go env
OutputWhat did you do?
ran "$GOPATH/bin/gomobile" bind -target=android -tags="android" -v -o "$android_dest" "$package"
and imported the .aar into Android Studio
What did you expect to see?
Should be able to import via
Should be able to build
What did you see instead?
Import did not show as a module but managed to hack by manually importing
After that project fails to build in android studio
Tried with a basic Hello World gomobile bind and it worked as expected however building this golang app returns the errors above
https://github.com/lightningnetwork/lnd
Here are the tail of the build logs
The text was updated successfully, but these errors were encountered: