-
Notifications
You must be signed in to change notification settings - Fork 1k
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
工程编译流程总结 #177
Comments
有问题 查看 git workflow 脚本就是流程 |
This does not work for Windows, please make a video |
app--build.gradle.kts--dependencies |
C:\Users\gavaba\go\bin\gomobile.exe: go install golang.org/x/mobile/cmd/gobind@latest failed: exit status 2 I am getting this error |
./buildScript/lib/core.sh write /home/root-linux/Downloads/NekoBoxForAndroid-1.2.8/libcore/.build/src/go.mod |
fix: bash bash bash bash bash bash
|
看了上面的总结,根据我遇到的问题【mac系统m2芯片】,总结如下:
2、/AndroidStudioProjects/NekoBoxForAndroid/buildScript/init/env_ndk.sh中指点了ndk版本25.0.8775105,我安装了其他版本,也报错,解决方法是在sdk manager中点击详细安装这个版本 3、最后一个是困扰我很长时间的问题,报错如下: realpath: .build: No such file or directory 解决方法:
最后再运行./buildScript/lib/core.sh |
2024年 一上来,执行 这个流程是不是该更新一下了? ps:忽略第一步,最终也能成功编译。中途遇到找不到gomobile命令,给go install目录加上环境变量解决 |
The compiled command(编译的命令是) : |
gomobile 未找到命令 |
编译环境
ubuntu 20
仓库版本 9144e3f9b890ab7c907a527d54102cb197eda63a
安装openjdk-8 测试 javac
安装git
git clone
1.执行脚本 下载 external lib
/run init action library
2.设置ndk环境
打开sdk manage 下载 ndk 25.0.8775105 即可
3.编译 core文件
./buildScript/lib/core.sh
如果提示没有go环境 执行 ./buildScript/init/go.sh (好像core步骤包括了 具体我忘了)
如果提示下载go库错误,需要设置镜像代理
打开 build/golang/go/bin 目录
执行:
go env -w GOPROXY=https://goproxy.cn
重新执行 ./buildScript/lib/core.sh 即可完成
输出
视为成功
然后可以进行AndroidStudio build操作了。
The text was updated successfully, but these errors were encountered: