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

x/mobile/bind: go/android/Android.java:22: error: cannot find symbol #14080

Closed
linguofeng opened this issue Jan 24, 2016 · 2 comments
Closed

Comments

@linguofeng
Copy link

$ gomobile bind -v -target=android github.com/linguofeng/androidandgolang/golang
write /var/folders/5v/m70wc_3144d9jbx479hg90nw0000gn/T/gomobile-work-583195693/fakegopath/pkg/android_arm/github.com/linguofeng/androidandgolang/golang.a
write /var/folders/5v/m70wc_3144d9jbx479hg90nw0000gn/T/gomobile-work-583195693/go_android/go_androidmain.go
write /var/folders/5v/m70wc_3144d9jbx479hg90nw0000gn/T/gomobile-work-583195693/androidlib/main.go
golang.org/x/mobile/internal/mobileinit
golang.org/x/mobile/bind/seq
_/var/folders/5v/m70wc_3144d9jbx479hg90nw0000gn/T/gomobile-work-583195693/go_android
golang.org/x/mobile/bind/java
command-line-arguments
write /var/folders/5v/m70wc_3144d9jbx479hg90nw0000gn/T/gomobile-work-583195693/android/src/main/java/go/android/Android.java
write /var/folders/5v/m70wc_3144d9jbx479hg90nw0000gn/T/gomobile-work-583195693/android/src/main/java/go/LoadJNI.java
aar: AndroidManifest.xml
aar: proguard.txt
aar: classes.jar
go/android/Android.java:22: error: cannot find symbol
            static final String DESCRIPTOR = Stub.DESCRIPTOR;
                                             ^
  symbol:   variable Stub
  location: class Proxy
1 error
gomobile: javac -d /var/folders/5v/m70wc_3144d9jbx479hg90nw0000gn/T/gomobile-work-583195693/javac-output -source 1.7 -target 1.7 -bootclasspath ~/work/android-sdk-macosx/platforms/android-23/android.jar go/LoadJNI.java go/Seq.java go/android/Android.java failed: exit status 1
go version go1.5.3 darwin/amd64
@linguofeng
Copy link
Author

type Callback interface  {
    callJava()
}
type Callback interface  {
    CallJava()
}

callJava -> CallJava

@QiBaobin
Copy link

Thanks, @linguofeng

@golang golang locked and limited conversation to collaborators Feb 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants