-
Notifications
You must be signed in to change notification settings - Fork 50
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
Gradle fail to compile from Android Studio when making a release or with skip export #180
Comments
Thanks a lot for your clarifications and for pointing me in the right direction! since sometimes I need to debug on the Android code using Android Studio I will stick with the #if os(iOS) blocks, because otherwise Android Studio will complain too :) |
I'm wondering if you, @marcprux have worked out the issues here? Perhaps there is a better explanation of building the Android package I will need - I hope? |
@davidakoontz Are you referring to errors from the Xcode release build, or errors from |
Sorry I don’t fully recall (which Xcode build OR export) now. Let’s just ignore for now and I will create a new Question when it arrives. I do remember getting the errors with navigationBartTitleDisplayMode and noting the macOS Which is why I tagged onto this issue. I feel that is related to building on/for MacOS (for some reason) - it appeared you were working on a solution. Let’s just ignore my report as …. Me too. |
Can I ask if this problem is still unresolved? |
The issue still exists. In order to run |
@marcprux Oh Thanks! :) |
This makes code applied only for iPhone. I made that |
Good point. You could also do |
Hi, I'm struggling to create an APK of the App without debug symbols to run on devices.
I've the latest version of skip (0.10.6) and I've created a new project from scratch. I can run it from Xcode just fine on both the iOS simulator and the Android simulator, but when I try to use skip export or directly Android Studio (2024.1 version) for either debug on Android or create an Apk the gradle build fails with the following errors:
It seems that for example the view property .navigationBartTitleDisplayMode isn't supported on MacOS and somehow the gradle build complains for that, the same thing for the .fullScreenCover.
If I remove those instructions everything's works fine.
I tried to remove the macOS support in the Xcode package description, but nothing changes when coming to gradle. I've also tried to embed those instruction in the #if !SKIP directive... but nothing.
Is there some way to make the gradle building process not care about MacOS, or, better, declare the app only for iOS and Android?
Thanks for your help, and great work!
The text was updated successfully, but these errors were encountered: