# gomobile **Repository Path**: zhoubing/gomobile ## Basic Information - **Project Name**: gomobile - **Description**: No description available - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-22 - **Last Updated**: 2025-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README https://www.cnblogs.com/togettoyou/p/goandroidshell.html gorm是CGO_ENABLED的项目 不适用于Android 所以选择xorm (补充)也可以给gorm配一个不依赖CGO实现的驱动 https://zhuanlan.zhihu.com/p/632249768 有了xorm后需要给xorm选一个sqlite的驱动 https://github.com/mattn/go-sqlite3 This package requires the CGO_ENABLED=1 environment variable if not set by default, and the presence of the gcc compiler. 这款因为也是CGO_ENABLED的 虽然可以编译通过 但在Android上运行没有效果 所以不能用 选择了另外一款纯go的驱动 Package sqlite is a cgo-free port of SQLite. https://pkg.go.dev/modernc.org/sqlite 此外有几个commit来表明了当时加入sqlite驱动的情况 https://pkg.go.dev/modernc.org/sqlite#section-documentation https://gitea.com/xorm/xorm/issues/1816 https://gitea.com/xorm/xorm/commit/9100c450e07256f49f904646db054eebccbc00cb#diff-cde42aca11d1ff763ae2cf2f5fd000eb273671e3 gomobile.exe bind -target=android -androidapi 19