my go version is go version go1.4 darwin/amd64
I clone the go/mobile repo and build it using docker:
go get -d golang.org/x/mobile/... docker build -t mobile $GOPATH/src/golang.org/x/mobile
and I want to build the example/basic using this command as you show in README:
docker run -v $GOPATH/src:/src mobile /bin/bash -c 'cd example/basic && ./make.bash'
and it just output
/bin/bash: line 0: cd: example/basic: No such file or directorybut at this time I'm under golang.org/x/mobile directly.
and if I execute make.bash in the example/basic:
./make.bash go build runtime: android/arm must be bootstrapped using make.bash
so how should I build this example?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
12-14 13:37:41.590 I/ActivityManager( 746): Start proc com.example.basic for activity com.example.basic/android.app.NativeActivity: pid=26356 uid=10335 gids={50335, 9997} abi=armeabi12-14 13:37:41.602 I/art (26356): Late-enabling -Xcheck:jni12-14 13:37:41.658 W/linker (26356): libbasic.so has text relocations. This is wasting memory and prevents security hardening. Please fix.12-14 13:37:41.691 I/Zygote ( 194): Process 26356 exited cleanly (2)12-14 13:37:41.711 I/ActivityManager( 746): Process com.example.basic (pid 26356) has died12-14 13:37:41.711 W/ActivityManager( 746): Force removing ActivityRecord{77f74a9 u0 com.example.basic/android.app.NativeActivity t2582}: app died, no saved state12-14 13:37:41.717 W/WindowManager( 746): Failed looking up window12-14 13:37:41.717 W/WindowManager( 746): java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@2ab1b265 does not exist12-14 13:37:41.717 W/WindowManager( 746): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8412)12-14 13:37:41.717 W/WindowManager( 746): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8403)12-14 13:37:41.717 W/WindowManager( 746): at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2558)12-14 13:37:41.717 W/WindowManager( 746): at com.android.server.wm.Session.remove(Session.java:186)12-14 13:37:41.717 W/WindowManager( 746): at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:2920)12-14 13:37:41.717 W/WindowManager( 746): at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5390)12-14 13:37:41.717 W/WindowManager( 746): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3223)12-14 13:37:41.717 W/WindowManager( 746): at android.os.Handler.dispatchMessage(Handler.java:102)12-14 13:37:41.717 W/WindowManager( 746): at android.os.Looper.loop(Looper.java:135)12-14 13:37:41.717 W/WindowManager( 746): at android.os.HandlerThread.run(HandlerThread.java:61)12-14 13:37:41.717 W/WindowManager( 746): at com.android.server.ServiceThread.run(ServiceThread.java:46)12-14 13:37:41.775 W/InputMethodManagerService( 746): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@2e394bf attribute=null, token = android.os.BinderProxy@393d769d12-14 13:37:42.504 W/ActivityManager( 746): getTasks: caller 10163 does not hold GET_TASKS; limiting output
thanks, my docker version is too old, after upgrade to 1.3.2, I build this basic sample successfully, but after I install it my device, it immediately crash:12-14 13:37:41.590 I/ActivityManager( 746): Start proc com.example.basic for activity com.example.basic/android.app.NativeActivity: pid=26356 uid=10335 gids={50335, 9997} abi=armeabi12-14 13:37:41.602 I/art (26356): Late-enabling -Xcheck:jni12-14 13:37:41.658 W/linker (26356): libbasic.so has text relocations. This is wasting memory and prevents security hardening. Please fix.12-14 13:37:41.691 I/Zygote ( 194): Process 26356 exited cleanly (2)12-14 13:37:41.711 I/ActivityManager( 746): Process com.example.basic (pid 26356) has died12-14 13:37:41.711 W/ActivityManager( 746): Force removing ActivityRecord{77f74a9 u0 com.example.basic/android.app.NativeActivity t2582}: app died, no saved state12-14 13:37:41.717 W/WindowManager( 746): Failed looking up window12-14 13:37:41.717 W/WindowManager( 746): java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@2ab1b265 does not exist12-14 13:37:41.717 W/WindowManager( 746): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8412)12-14 13:37:41.717 W/WindowManager( 746): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8403)12-14 13:37:41.717 W/WindowManager( 746): at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2558)12-14 13:37:41.717 W/WindowManager( 746): at com.android.server.wm.Session.remove(Session.java:186)12-14 13:37:41.717 W/WindowManager( 746): at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:2920)12-14 13:37:41.717 W/WindowManager( 746): at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5390)12-14 13:37:41.717 W/WindowManager( 746): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3223)12-14 13:37:41.717 W/WindowManager( 746): at android.os.Handler.dispatchMessage(Handler.java:102)12-14 13:37:41.717 W/WindowManager( 746): at android.os.Looper.loop(Looper.java:135)12-14 13:37:41.717 W/WindowManager( 746): at android.os.HandlerThread.run(HandlerThread.java:61)12-14 13:37:41.717 W/WindowManager( 746): at com.android.server.ServiceThread.run(ServiceThread.java:46)12-14 13:37:41.775 W/InputMethodManagerService( 746): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@2e394bf attribute=null, token = android.os.BinderProxy@393d769d12-14 13:37:42.504 W/ActivityManager( 746): getTasks: caller 10163 does not hold GET_TASKS; limiting outputmy device is nexus5 with android 5.0
This is probably the issue Bryan mentions, filed as
https://golang.org/issue/9311. But I'm surprised there's no error
message in your log output. There should be if you built after
https://github.com/golang/go/commit/bee8ae11.