Build Failed during compile

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I've been having problems with compiling my first Android game made with CTF 2.5 on Windows 8.1.

    I have the developer version and both the HTML5 and Android exporters. The HTML5 exporter works fine, and the Android exporter works fine with a blank application, but not with my game that I want to publish!

    I have searched thoroughly through this forum for an answer, and have tried every solution offered, such as removing certain objects, disabling antivirus during export, and ensuring that the JDK and Android SDK were properly installed.

    I have tried with the latest JDK (8) and Android SDK (24), as well as the default Android build version (14) and an older JDK (6). Blank exports work fine with all configurations, so I know that I have them installed correctly, but the failure is always in the compile stage of my game's export.

    The Error Log goes as follows:

    I also see how the java [javac] part of the export contains errors where ';'s or line breaks are expected, but I believe that's part of the exporter process so is out of my hands. Thank you for reading through this, I hope you can help!

    -Peda

  • the package name is wrong.. you can't have numbers in it. the exporter will fail

    btw. it could be, that it's looking for API 20 as well.
    make sure you select the right API, AND have it installed :)

  • Changed the name to com.pirat.eightbit, and made sure that the build number 20 is indeed 4.4 and is actually installed. Now there is no error popping up. And no log. But fusion is now frozen. The green bar in the bottom left hasn't moved in about half an hour. Building HTML5 or exe usually takes just a minute or two, so I believe it might be broken. Do I force quit the program, or keep waiting? What causes the export to hang without errors like this?

  • Did you click Build & Run? If so, then adb is frozen. ADB is the tool from the Android SDK that CF launches to install and launch the APK on your device. Kill the adb process(s) to unfreeze CF.

    Check that your device is connected via USB and that USB Debugging is selected in the Developer Options in the parameters of your device.

    If CF still freezes when you click Build & Run, then maybe that means your USB driver is not ADB compatible and you should install another one. Or you can simply build the APK, transfer it manually to the device and install it yourself.

  • Thanks. Ensuring the device was connected and that Debugging was on is what fixed it. NOW the problem is that my 'mouse single left click' events aren't working as touch events. Is there something that needs to be done to translate these?

  • Thanks, I will try this and post the results. I tested an HTML5 build just now, and the left clicks worked as touch, but I guess that simply works differently in HTML than Android.

  • Oh dear, they are "When user clicks" events, so I have no idea why they work on my touchscreen PC and phone's internet browser as .exe. and html5 exports, but they don't work on my phone screen as a .apk file. Is there another way to convert mouse clicks to touches?

  • there is, but then you need to use the "On Touch" events, and then you have to do a lot more.

    if it's just a simple left click
    All you need it

    When user clicks on object (or whatever) then a screen comes up for either Left/middle/right and single / double click options
    Just use the Left click, and it acts like a Touch.

  • Ok, so I've inserted a multi-touch object into every frame that wouldn't accept touch, and that all works fine.

    New problem is that my sound samples can't play over each other. It'll only play one sample at a time, and if any sounds overlap, then they cut over each other intermittently, or they don't play at all. They all worked fine in the exe and html exports. Is there something I should be doing to the standard samples playing in Android?

    Finally, I was using an INI object to save the game.. Again, this works in exe and html5, but the game is not saved in the Android build. Should saving variables and strings be handled differently in Android games? I have set the permissions to read from and write to external storage and delete from and clear the cache. Anything else?

  • 1.- here is an example to use multitouch Please login to see this link.

    2.- did you check "play sounds over frame" in properties (runtime options - properties)

    3.- you need to use the folder name in android object here an example Please login to see this link.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • In the main settings, there are options for the sound.
    like Multi samples and play over frame.
    Also, you might need to play different sounds on different channels.. if they are playing at the same time.

    For the INI file. did you use the Android Object to get the Folder for the application, so you can save?


    edit : Fernando beat me on this... both the same answers, except I didn't have an example handy :p

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!