Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Gideros Update 2015.03.22 - Page 2 — Gideros Forum

Gideros Update 2015.03.22

2»

Comments

  • vyh77vyh77 Member
    Hi, with this last version of Gideros I'm getting the following error while Building with Android Studio. I'm not sure if I have something wrong with my Android SDK installation. I was rechecking the instructions here https://developer.android.com/sdk/installing/adding-packages.html and everything seems fine. Gideros is exporting projects with API 19 so i added this API to the SDK as well, besides the last one 22.

    Information:Gradle tasks [:app:assembleDebug]
    :app:preBuild UP-TO-DATE
    :app:preDebugBuild UP-TO-DATE
    :app:compileDebugNdk UP-TO-DATE
    :app:checkDebugManifest
    :app:prepareDebugDependencies
    :app:compileDebugAidl UP-TO-DATE
    :app:compileDebugRenderscript UP-TO-DATE
    :app:generateDebugBuildConfig UP-TO-DATE
    :app:generateDebugAssets UP-TO-DATE
    :app:mergeDebugAssets UP-TO-DATE
    :app:generateDebugResValues UP-TO-DATE
    :app:generateDebugResources UP-TO-DATE
    :app:mergeDebugResources UP-TO-DATE
    :app:processDebugManifest UP-TO-DATE
    :app:processDebugResources UP-TO-DATE
    :app:generateDebugSources UP-TO-DATE
    :app:compileDebugJava
    /Users/ronald/AndroidStudioProjects/Bird Animation/app/src/main/java/com/giderosmobile/android/BirdAnimationActivity.java
    Error:(132, 3) error: cannot find symbol class TargetApi
    Error:Execution failed for task ':app:compileDebugJava'.
    > Compilation failed; see the compiler error output for details.
    Information:BUILD FAILED
    Information:Total time: 2.933 secs
    Information:2 errors
    Information:0 warnings
    Information:See complete output in console

    The Gradle console added these details:

    :app:compileDebugJava
    /Users/ronald/AndroidStudioProjects/Bird Animation/app/src/main/java/com/giderosmobile/android/BirdAnimationActivity.java:132: error: cannot find symbol
    @TargetApi(Build.VERSION_CODES.KITKAT)
    ^
    symbol: class TargetApi
    location: class BirdAnimationActivity
    1 error

    FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':app:compileDebugJava'.
    > Compilation failed; see the compiler error output for details.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 2.933 secs
  • vyh77vyh77 Member
    Hi again! I thought the problem was with my macbook, because it uses OSX 10.10.2, which is not supported by Android Studio http://developer.android.com/sdk/index.html#Requirements

    So I installed it on a Windows 8 machine, together with jdk 7, and building the bird example with API 19 and 21 gives me the same error!

    How are you guys building for Android?
  • vyh77vyh77 Member
    Today I tried with Eclipse, and building the Bird Animation example gives me 2 errors, both pointing to the same line of code on the main activity:

    @TargetApi(Build.VERSION_CODES.KITKAT)

    is it only me who is getting this errors? maybe I have a wrong set up?

    @ar2rsawseen it seems to me that you are using neither Android Studio nor Eclipse. How are you creating your APKs from the exported Gideros project?
  • Not tried the bird animation demo, but things I make work ok exported to Eclipse.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • ar2rsawseenar2rsawseen Maintainer
    @vyh77 yes I've fixed them in the new build that we are preparing today ;)
  • vyh77vyh77 Member
    @SinisterSoft thanks for the answer! I envy you ;) to me nothing works, I just tried the "Button" example, and it doesn't work either. What PC, eclipse and gideros are you using? maybe it would be nice to include this kind of info in our signatures.

    @ar2rsawseen nice to hear that, I was thinking that I'm just not useful for developing ;) When are you releasing this patch? I'm desperate to publish my game for Android!

    Here http://www.giderosmobile.com/DevCenter/index.php/Deployment says:

    "Choose General → Existing Projects into Workspace"

    but correct should be

    "Android → Existing Android Code into Workspace"

    or am I wrong?

    And last thing, if the manuals say we use Eclipse, please test with this tool before releasing new versions of Gideros.
  • ar2rsawseenar2rsawseen Maintainer
    I think it should work with both, but probably Android makes more sense
    Updated wiki page
  • @vyh77 I'm using the version of Eclipse supplied by NVidia. I have the latest Android files downloaded too.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • how to prevent this :
    "android and ios (hold finger on screen for more than 5 seconds and release)" I need to hold finger on screen in my game
  • I'm not sure what you mean? Do you get a message from the system if you do this?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • @Fufuran in latest versions it only works when on player screen (the one that shows your ip) and should not work while you are in your game
Sign In or Register to comment.