@xape4ka Don't use go/mobile to build apk, but use go/mobile to build a shared .so file, and then call it in your Android projects, it works. This is not a practical solution. gomobile meant to build apk I don't want to create an Android project from scratch (don't want to install stupid Android Studio)
6条答案
按热度按时间ekqde3dh1#
UP。有任何想法,如何针对自定义的SdkVersion进行目标定位?
0mkxixxg2#
请不要使用go/mobile来构建apk,而是使用go/mobile来构建一个共享的
.so
文件,然后在你的Android项目中调用它,这样就可以正常工作了。nqwrtyyt3#
@xape4ka Don't use go/mobile to build apk, but use go/mobile to build a shared
.so
file, and then call it in your Android projects, it works.This is not a practical solution.
gomobile
meant to buildapk
I don't want to create an Android project from scratch (don't want to install stupid Android Studio)w6lpcovy4#
看起来
gomobile
不再维护了!这是一个自5年前以来一直未解决的关键问题!
vs3odd8k5#
@mbnoimi 你阅读过Wiki了吗?(不想假设你已经/还没有。)readme中详细介绍了绑定的限制,因为它仍然是每个平台的
v0
"实验"。https://github.com/golang/go/wiki/Mobile
此外,更新之间存在相当大的间隔...
oo7oh9g96#
此外,更新之间存在相当大的时间间隔...
可能pkg.go.dev仅显示其中的一部分。