-
Notifications
You must be signed in to change notification settings - Fork 46
Kotlin target tries to build Android app with system's JDK #106
Comments
Thanks for reporting this bug. I don't have a lot of experience with Android compilation but let's try to figure out what's happening to see how we can fix it with Gryphon. Basically what Gryphon does in the Kotlin target is switch to the Android app's folder and call Gradle to compile the app:
This is the main part of a larger script that you can probably see in your iOS project's folder under Could you try to run |
Ok, trying to reproduce. I believe it would be beneficial to expand an error with message like |
So, on fresh macOS i'm getting
Which means that build tries to build app with system's JDK. Bunch of fixes is here. |
Here is my findings. I've resolved problem locally by changing the script:
to
This is far from elegant solution, but it is much better than using duplicate JDK in one system.
I know I mentioning another issue here, but having .gryphon-android-root + .gryphon-android-src would mean that android app could change location/package/module without having iOS app changing its sources, only few files that could be in gitignore. |
Hey @batkov, I implemented the config file. It doesn't yet support the Java home setting you asked for, but it's a first step. Let me know if it works for you for now, ok? I'll try to add the Java home support later using this system, that sounds like a good idea. |
Basically I'm getting error:
But from Android Studio everything looks good.
It looks like when we are building from the Xcode with
Kotlin
target, jdk installed in the macOS system.I've tried to change
STUDIO_JDK
andJAVA_HOME
but it did not work.I believe there is some simple solution, like set env variable, pass script parameter or update Android project settings.
The text was updated successfully, but these errors were encountered: