Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Error when export android project on mac os — Gideros Forum

Error when export android project on mac os

edited March 2018 in General questions
Hi!
Anyone have this error when trying export android project on mac os? (Gideros 2018.3)

Java Path:/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/jre
Android SDK Path:/Users/macbook/Library/Android/sdk
Lua error:[string "require "lfs"..."]:33: bad argument #1 to 'max' (number expected, got nil)
Export failed! See details above.

Please help me! Thanks!
Coming soon

Comments

  • Haven't seen that one! Which plugins, if any, are you using?
    My Gideros games: www.totebo.com
    +1 -1 (+1 / -0 )Share on Facebook
  • hgy29hgy29 Maintainer
    Sounds like a macro issue to me... are you using macros ?
    +1 -1 (+1 / -0 )Share on Facebook
  • hgy29 said:

    Sounds like a macro issue to me... are you using macros ?

    Opp! Maybe, how to on/off macros usage? Or how can I check if I am using macros or not. I just download and try to export, do not do anything else!
    Thanks!
    Coming soon
  • edited March 2018
    Hi @totebo I am sorry long time come back so I still can not catch up with what new in Gideros.
    But In my export project panel, I cannot find Plugins button.
    So basically, I just open the example project, File/ Export project And then press OK
    Also, I can not find where to enable or disable Macros, search in both Project setting and Gideros Studio Settings.
    Thanks for your help!


    Screen Shot 2018-03-26 at 8.56.30 AM.png
    989 x 768 - 109K
    Screen Shot 2018-03-26 at 8.51.55 AM.png
    999 x 770 - 127K
    Screen Shot 2018-03-26 at 8.51.37 AM.png
    1000 x 767 - 109K
    Coming soon
  • hgy29hgy29 Maintainer
    edited March 2018 Accepted Answer
    Got it, that’s the android tooling detection routine which is failing, you must have some oddly (for gideros) numbered version of android tools. I am pretty sure this occurred to @totebo not long ago and has been fixed, but maybe google changed its numbering scheme again. Will tell you more by looking at the failing lua file

    EDIT: it seems that there is an unusual folder name in your android SDK/platform directory. Gideros expects them to be named android-x where x is a number but somehow your must be having one such folder where x isn’t a number
    +1 -1 (+1 / -0 )Share on Facebook
  • Awesome! I found "android-P" inside platforms folder!
    We can now export if remove that folder. Maybe you want to update "android tooling detection routine ". Thank so much @hgy29 !!!!

    Another question remains is where plugins button and how to disable macros?
    Coming soon
  • hgy29hgy29 Maintainer
    Accepted Answer
    Already fixed for 2018.3.1 :)
    There is no more plugins button, you can add/remove plugins by right clicking on the 'Plugins' folder in your project tree. For macros, you can't disbale them, just use them or not, but macros weren't the issue after all.
    +1 -1 (+1 / -0 )Share on Facebook
  • hgy29 said:

    Already fixed for 2018.3.1 :)
    There is no more plugins button, you can add/remove plugins by right clicking on the 'Plugins' folder in your project tree. For macros, you can't disbale them, just use them or not, but macros weren't the issue after all.


    I just ask how to disable Macros because some library script (For example Moses https://github.com/Yonaba/Moses) using include as function name and conflict with Macros keyword, so I have to rename function if want to use in the project.

    All problem now is gone! Thank so much @hgy29 !
    Coming soon
  • Hey, my problem is still there in 2018.3.1 when I export to .apk:
    FAILURE: Build failed with an exception.
     
    * What went wrong:
    Execution failed for task ':app:compileReleaseJavaWithJavac'.
    > Could not open local class set analysis write cache (/Volumes/TRAVEL HDD/Niclas/Game dev/Fast Food Rampage/Builds/Google Play/Fast Food Rampage/tmp/.gradle/2.14.1/tasks/_app_compileReleaseJavaWithJavac/localClassSetAnalysis).
    > java.nio.channels.OverlappingFileLockException (no error message)
    If I export to Android Studio and then export .apk from there it works.
    My Gideros games: www.totebo.com
Sign In or Register to comment.