“gomobile build”和“gomobile install”抛出了“gomobile:EOF"

时间:2015-08-09 13:11:11

标签: android go gomobile

我尝试使用gomobile构建一个Android应用程序,但命令gomobile installgomobile build失败并显示gomobile: EOF。在此错误之前,我收到此错误:

# golang.org/x/mobile/gl In file included from /root/go/src/golang.org/x/mobile/gl/gl.go:17:0: work.h:6:23: fatal error: GLES2/gl2.h: No such file or directory compilation terminated.但已修复为yum install make gcc mesa-libGLES-devel mesa-libEGL-devel

该应用程序主要是一个网络应用程序。这是进口。只有某些包装适用于gomobile或全部吗?

"golang.org/x/mobile/app"
"golang.org/x/net/websocket"
"os/exec"
"flag"
"fmt"
log "github.com/golang/glog"
"io/ioutil"
"net"
"net/http"
"net/url"
"strconv"

操作系统:Fedora 22。

更多信息:我能够构建https://github.com/golang/mobile/blob/master/example/network/main.go,因此我只能假设问题是针对我的应用程序的。

1 个答案:

答案 0 :(得分:1)

失败,因为AndroidManifest.xml为空。