Android export problems - can't build the application

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.
  • Hello,

    I face new problems with android exporter. I say new problems because i finally managed to make it work on my previous PC. Problem is I experienced hardware problems so I had to change it. It was an Intel processor, and this one is AMD, i don't know if it matters much.

    I have my new computer and I can't build android applications again. When i try to do it, it fails and depends on what API i chose or which version of Android or OpenGPL, error messages are different.

    I decided to keep the configuration that generate the less errors.

    I installed the last version of Android Studio.

    In Fusion, i configured the JDK directory as C:\Program Files\Java\jdk-20
    and the Android directory as C:\Users\Alexandre\AppData\Local\Android\Sdk

    Package name is com.tableau.myapplication
    API version : 29
    Minimum Android version : 4.4
    Target Android version : 12.0

    I chose OpenGL ES 1.1 (i have more errors if i choose a more recent version)

    I didn't choose any particular authorisation.

    In android studio, i installed :

    - Android 12L SV2 with SDK platform 32 and sources for android 12.0
    - Android 12.0 (S) with Android SDK platform 31 and sources for android 31
    - Android 10.0 (Q) with Android SDK platform 29
    - Android 8.0 (Oreo) with Android SDK platform 26 and sources for Android 26

    In SDK tools, i checked and installed everything, except :

    - NDK
    - Android auto desktop head unit emulator
    - Google play services
    - Intel x86 hardware accelerator
    - layout inspector image for API S

    When i try to build an apk application, here is the log :

    > Task :app:preBuild UP-TO-DATE
    > Task :app:preDebugBuild UP-TO-DATE
    > Task :app:compileDebugAidl NO-SOURCE
    > Task :app:compileDebugRenderscript NO-SOURCE
    > Task :app:generateDebugBuildConfig
    > Task :app:javaPreCompileDebug
    > Task :app:generateDebugResValues
    > Task :app:generateDebugResources
    > Task :app:checkDebugAarMetadata
    > Task :app:createDebugCompatibleScreenManifests
    > Task :app:extractDeepLinksDebug
    > Task :app:processDebugMainManifest FAILED
    > Task :app:mergeDebugResources

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':app:processDebugMainManifest'.
    > Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @7d7c1e1a

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

    * Get more help at Please login to see this link.

    BUILD FAILED in 3s
    8 actionable tasks: 8 executed

    Could you help me please? I spent 4 hours trying different configurations already. Last time i managed to do it on my previous computer, i spent days before to be able to find the right configuration. It's really hard to make it work.

    Thanks in advance.

  • you should be using the OpenJDK that comes with android studio "eel", and it is located at C:\Program Files\Android\Android Studio\jbr

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • I can't build android applications since i've updated android studio, i'm building android app since years and today, it stopped to work because of the last Android Studio update...

    Quote


    FAILURE: Build failed with an exception.

    * What went wrong:
    The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files\Android\Android Studio\jre\bin\java.exe

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

    * Get more help at Please login to see this link.

    I don't understand why Fusion is looking for java.exe in jre folder (and it doesn't exist here) when i've told it to look into JBR folder...

    Edited once, last by Dobermann (April 3, 2023 at 12:45 PM).

  • New version dropped support of JDK, now it uses JBR instead.
    Change the JDK path in Fusion properties to JBR path.


    Please login to see this attachment.
    It's already set to JBR, i've also tried to download other JAVA JDK version, nothing work, i always get the same error message. I've also reinstalled last Fusion update, reinstalled android studio... This issue is driving me crazy, and as i said above, i don't understand why fusion is looking for JRE folder when JBR is set as JDK folder...

    SO i've found a solution, i've reinstalled Android Studio Dolphin, as it still use JRE folder, no issue to build with this one. But there is clearly a major issue with Fusion not looking into the folder we set in properties (i don't know if it's because of the new android runtime Fernando sent me for Admob V5)

    Edited 2 times, last by Dobermann (April 3, 2023 at 1:48 PM).

  • So i've finally found a solution to be able to use Android Studio Electric Eel. It's to rename the folder "jre" present in "Program Files\Android\Android Studio" to something else (for ex. jre_old).

    PS: It also works with Android Studio Flamingo!

    Edited 2 times, last by Dobermann (May 19, 2023 at 6:27 PM).

  • So i've finally found a solution to be able to use Android Studio Electric Eel. It's to rename the folder "jre" present in "Program Files\Android\Android Studio" to something else (for ex. jre_old).

    PS: It also works with Android Studio Flamingo!

    do me a favor, check what you have in environmental variable as JAVA_HOME

    Quote

    I don't understand why Fusion is looking for java.exe in jre folder (and it doesn't exist here) when i've told it to look into JBR folder...


    Fusion use what you set in preferences.


    JAVA_HOME is changed by Java installer or any java product

    Regards,


    Fernando Vivolo

    ... new things are coming ...

    Edited once, last by Fernando (May 20, 2023 at 5:49 PM).

Participate now!

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