-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Bug]: Fyne doesn't compile on termux. #5173
Comments
Please list the library version not the cli. More info: Please share what is at line 136 of |
Correcting title as this is compile specific. If you compiled the android app elsewhere and copied it on then it would execute as far as I can see. |
Oh, hold on - isn't termux a linux emulator for Android? In that case you should probably try "fyne package -os linux" because it's trying to build an android app from a linux terminal. |
That command have the same error. Termux is an Android Linux emulator, but it uses bionic instead of glibc. It's default compiles for linux-android. The content of line 136 is: |
And the other issue is about Android API Level too low |
Fyne version is 2.5.1 |
Thanks, and what is the definition of
Google Play Protect hates our backwards compatibility - it is not a problem, just a nuisance. |
There is a related issue, maybe that information can help: |
And with the issue related to API Level, it could be usefull to have a way to use a API Level which allow external distributions. Maybe an option on the CLI tool. |
It is not clear what distribution is blocked by our backwards compatibility. |
Well, it seems google play blocks apps according to the used target sdk. So isn't the minimun API Level what needs to be updated but the target sdk, acording to the Android SDK documentation, which is updated every year, so that's the only which need to be updated. |
It is not blocked - it is a warning that you can accept. Our target SDK is above the minimum required. If it wasn't then Google would have removed the listing from the store. "Google Play Protect" is a level above what is required by the store if I understand it correctly. Apps using the latest fyne should always be compliant with the published policies. |
Then please try setting GOOS=linux. I can tell it is compiling for |
Checklist
Describe the bug
I've followed the instructions from your getting start page to install fyne in Termux, but I've found some issues:
1 - It can't compile programs directly for Termux:
2 - Android API level used is too low:
How to reproduce
1: Run
go build
in the firs example app2: Install an app
Screenshots
1:
2:
Example code
Fyne version
fyne cli version: (devel)
Go compiler version
go version go1.23.1 android/arm64
Operating system and version
Android 11
Additional Information
No response
The text was updated successfully, but these errors were encountered: