-
Notifications
You must be signed in to change notification settings - Fork 1
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
issues when trying Android #1
Comments
The android build its a lot more complex / involved... you need to create a gradle project essentially - there isnt a command line tool to do this that comes with the android SDK (there used to be when it was ant based). So haxeui comes with a tool that does it for you. So copying the templates is kind of what the tool does, but it actually does more like replacing certain things inside the output. My advice would be to use:
Ian PS: the focus / blur stuff should be fixed now |
heres an example .hxml that is outputted by the haxeui tool, fyi:
Note that you will need an ANDROID_HOME env var setup (which i think should already setup as part of the SDK) Finally, to run the .apk, you can use:
|
I added -lib haxeui-android to hxml and get error.
haxe/ui/backend/android/behaviours/CompoundButtonChecked.hx:3: charactersacters 8-37 : Type not found : android.widget.CompoundButton
Also cli\templates\android-shared\local.properties doesn't exist in haxe-core new-component-branch. So I placed a blank file called local.properties to get past
TextInputBase didnt have 2 functions
public function focus(){ }
public function blur(){ }
Finally failed at
Starting a Gradle Daemon (subsequent builds will be faster)
File not found - *.xml
Could Not Find ...\build\android\app\src\main\java*.xml
-copied AndroidManaifest.xml up 1 folder into java folder every build and got
FAILURE: Build failed with an exception.
:app:compileDebugJavaWithJavac FAILED
15 actionable tasks: 1 executed, 14 up-to-date
The system is out of resources.
Consult the following stack trace for details.
java.lang.StackOverflowError
at java.lang.Character.digit(Character.java:6563)
at java.lang.Character.digit(Character.java:6511)
at com.sun.tools.javac.parser.UnicodeReader.digit(UnicodeReader.java:225)
at com.sun.tools.javac.parser.JavaTokenizer.scanDigits(JavaTokenizer.java:206)
at com.sun.tools.javac.parser.JavaTokenizer.scanNumber(JavaTokenizer.java:322)
at com.sun.tools.javac.parser.JavaTokenizer.readToken(JavaTokenizer.java:538)
at com.sun.tools.javac.parser.Scanner.nextToken(Scanner.java:115)
The text was updated successfully, but these errors were encountered: