Skip to content
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

x/mobile: manual declaration of uses-sdk in AndroidManifest.xml not supported #27023

Open
ntop001 opened this issue Aug 16, 2018 · 6 comments
Open
Labels
mobile Android, iOS, and x/mobile
Milestone

Comments

@ntop001
Copy link

ntop001 commented Aug 16, 2018

We need to set the minSdkVersion and targetSdkVersion in the AndroidManifest.xml file. But it won't build, gomobile will exit with err:

manual declaration of uses-sdk in AndroidManifest.xml not supported

minSdkVersion and targetSdkVersion is a commonly used in Android. If not set, app market like Google Play will refused to accept the app.

@gopherbot gopherbot added this to the Unreleased milestone Aug 16, 2018
@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Aug 16, 2018
@xape4ka
Copy link

xape4ka commented Feb 17, 2022

UP. Any ideas, how target to custom SdkVersion?

@ntop001
Copy link
Author

ntop001 commented Jun 16, 2022

@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.

@mbnoimi
Copy link

mbnoimi commented Mar 16, 2023

@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)

@mbnoimi
Copy link

mbnoimi commented Mar 16, 2023

It seems gomobile no longer maintained!
This is an essential issue not solved since 5 years!!!

@bencodesall
Copy link

bencodesall commented Mar 16, 2023

@mbnoimi Have you read through the Wiki? (Don't want to assume that you have/haven't.) The readme's go into pretty good detail about what the limitations are on the bindings, being that it's still a v0 "experiment", for each platform.
https://github.com/golang/go/wiki/Mobile

Also, there's a pretty large time gap in updates ...
image

@hajimehoshi
Copy link
Member

Also, there's a pretty large time gap in updates ...

Probably pkg.go.dev shows only part of them.

https://github.com/golang/mobile/commits/master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Android, iOS, and x/mobile
Projects
None yet
Development

No branches or pull requests

6 participants