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/cmd/gomobile: local import "." in non-local package #30691
Comments
I don't know if it would help, but I'll put a link to the same question I posted on StackOverflow yesterday. As not many people were viewing it (not a really big community), I thought in asking here too. But there I write somethings I've done to try to understand the problem with no success, so I thought maybe it might be useful for someone to see them, so here is the link to the question: https://stackoverflow.com/questions/55049699/how-to-local-import-in-non-local-package-error. I updated it just now with putting the ps3-proxy.go file into GOPATH/src/folder and running the command, but that gives another error which I have no idea of what means because Google can't find it and I don't know if I should have put it there, and if I should, then I created another error/issue...: |
Ok, so I think I may have found a possible bug. If it's not, then I have no idea why it happened with me. This is what I wrote in StackOverflow:
|
I seem to get this error every time I work outside GOPATH with go modules. |
Hi there, There are many other methods to get help if you're still looking for answers:
Thanks |
What did you do?
I'm trying to convert a program (which is not mine) to .aar with gomobile with the command
gomobile bind --target=android
to use on Android Studio. The program is on GitHub: https://github.com/mondul/PS3-Proxy/blob/master/ps3-proxy.go.What did you expect to see?
I don't exactly know, but probably I would expect a .aar file to appear somewhere.
What did you see instead?
The following error:
System details
Notes
I had never heard of the language until I saw this program and my need for it, so I don't completely understand it. Though, I've been reading and I couldn't find anything on the Internet that solves that error.
The program works perfectly when I run it on my Android phone with GNURoot Debian (since I have KitKat and Termux only works with at least Lollipop) and at least it shows signals of being working by printing the first line when I run it with the command
go run ps3-proxy.go
on CMD on Windows (I'm using Windows 7 if that helps).For the command to be able to work, I changed the first line of the file from
package main
topackage random
(that's why the name of the file on the error is go_randommain.go. That's the right thing to do right?Any help is much appreciated. Thanks in advance!
The text was updated successfully, but these errors were encountered: