`gomobile build` 和 `gomobile install` 抛出 "gomobile: EOF"

`gomobile build` and `gomobile install` throws "gomobile: EOF"

我正在尝试使用 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"

OS: Fedora 22.

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

失败,因为 AndroidManifest.xml 是空的。