Android app Failed to build

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.
  • Help! not sure what happened,
    I Updated Android Studio
    Can no longer build my android app.
    Build API = 30
    Min = 5.0
    Target = 10
    ErrorLog:

    > 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:checkDebugAarMetadata
    > Task :app:generateDebugResources
    > Task :app:createDebugCompatibleScreenManifests
    > Task :app:extractDeepLinksDebug
    > Task :app:processDebugMainManifest
    > Task :app:processDebugManifest
    > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
    > Task :app:mergeDebugShaders
    > Task :app:compileDebugShaders NO-SOURCE
    > Task :app:generateDebugAssets UP-TO-DATE
    > Task :app:mergeDebugAssets
    > Task :app:compressDebugAssets
    > Task :app:processDebugJavaRes NO-SOURCE
    > Task :app:checkDebugDuplicateClasses
    > Task :app:mergeDebugResources
    > Task :app:mergeLibDexDebug
    > Task :app:mergeDebugJniLibFolders
    > Task :app:desugarDebugFileDependencies
    > Task :app:validateSigningDebug
    > Task :app:mergeDebugJavaResource
    > Task :app:mergeDebugNativeLibs


    > Task :app:stripDebugDebugSymbols
    Unable to strip the following libraries, packaging them as they are: libES1Renderer.so, libES2Renderer.so, libES3Renderer.so, libRuntimeNative.so, libgdx.so.


    > Task :app:writeDebugAppMetadata
    > Task :app:writeDebugSigningConfigVersions
    > Task :app:processDebugManifestForPackage
    > Task :app:mergeExtDexDebug
    > Task :app:processDebugResources


    > Task :app:compileDebugJavaWithJavac FAILED
    C:\Users\Gerald\AppData\Local\Temp\AndC3B0.tmp\app\src\main\java\com\clickteam\special\CTSignInClient.java:165: error: cannot find symbol
    public boolean isConnected() { return mGoogleSignInClient.getInstanceId() != 0;}
    ^
    symbol: method getInstanceId()
    location: variable mGoogleSignInClient of type com.google.android.gms.auth.api.signin.GoogleSignInClient
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error


    FAILURE: Build failed with an exception.


    * What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.
    > 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. Run with --scan to get full insights.


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


    BUILD FAILED in 10s
    26 actionable tasks: 26 executed

    Please login to see this link.

  • reinstalled 293.1 and the latest version of GPG objects

    Now I get error:

    Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details


    > Configure project :app
    WARNING: The option 'android.useDeprecatedNdk' is deprecated.
    The current default is 'false'.
    It has been removed from the current version of the Android Gradle plugin.
    NdkCompile is no longer supported


    FAILURE: Build failed with an exception.


    * Where:
    Build file 'C:\Users\Gerald\AppData\Local\Temp\And8BFB.tmp\app\build.gradle' line: 57


    * What went wrong:
    A problem occurred evaluating project ':app'.
    > Could not get unknown property 'version_X_appcompat' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.


    * 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 9s

    Please login to see this link.

  • 293.1 release is not AndroidX compatible, you need to install now the 293.10 beta and then the GPG latest version

    I had 293.10 beta installed the first time, I downloaded 293.1 and installed that the second time.

    Ok, I now have 293.10 installed again and the GPG latest version (GPGObjects_V101j) is that correct?

    Please login to see this link.

  • New errors :

    Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
    > 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:checkDebugAarMetadata
    > Task :app:generateDebugResources
    > Task :app:createDebugCompatibleScreenManifests
    > Task :app:extractDeepLinksDebug
    > Task :app:mergeDebugResources
    > Task :app:processDebugMainManifest
    > Task :app:processDebugManifest
    > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
    > Task :app:mergeDebugShaders
    > Task :app:compileDebugShaders NO-SOURCE
    > Task :app:generateDebugAssets UP-TO-DATE
    > Task :app:mergeDebugAssets
    > Task :app:compressDebugAssets
    > Task :app:processDebugJavaRes NO-SOURCE
    > Task :app:checkDebugDuplicateClasses
    > Task :app:mergeDebugJniLibFolders
    > Task :app:validateSigningDebug
    > Task :app:writeDebugAppMetadata
    > Task :app:writeDebugSigningConfigVersions
    > Task :app:processDebugManifestForPackage
    > Task :app:mergeDebugJavaResource
    > Task :app:mergeDebugNativeLibs


    > Task :app:stripDebugDebugSymbols
    Unable to strip the following libraries, packaging them as they are: libES1Renderer.so, libES2Renderer.so, libES3Renderer.so, libRuntimeNative.so, libgdx.so.


    > Task :app:desugarDebugFileDependencies
    > Task :app:processDebugResources
    > Task :app:mergeExtDexDebug


    > Task :app:compileDebugJavaWithJavac
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\BaseGameActivity.java:21: error: cannot find symbol
    import android.support.v4.app.FragmentActivity;
    ^
    symbol: class FragmentActivity
    location: package android.support.v4.app
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\BaseGameActivity.java:43: error: cannot find symbol
    public abstract class BaseGameActivity extends FragmentActivity implements
    ^
    symbol: class FragmentActivity
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\BaseGameActivity.java:93: error: incompatible types: Extensions.BaseGameActivity cannot be converted to android.app.Activity
    mHelper = new GameHelper(this, mRequestedClients);
    ^
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\BaseGameActivity.java:99: error: method does not override or implement a method from a supertype
    @Override
    ^
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\BaseGameActivity.java:101: error: cannot find symbol
    super.onCreate(b);
    ^
    symbol: variable super
    location: class Extensions.BaseGameActivity
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\BaseGameActivity.java:108: error: method does not override or implement a method from a supertype
    @Override
    ^
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\BaseGameActivity.java:110: error: cannot find symbol
    super.onStart();
    ^
    symbol: variable super
    location: class Extensions.BaseGameActivity
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\BaseGameActivity.java:111: error: incompatible types: Extensions.BaseGameActivity cannot be converted to android.app.Activity
    mHelper.onStart(this);
    ^
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\BaseGameActivity.java:114: error: method does not override or implement a method from a supertype
    @Override
    ^
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\BaseGameActivity.java:116: error: cannot find symbol
    super.onStop();
    ^
    symbol: variable super
    location: class Extensions.BaseGameActivity
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\BaseGameActivity.java:120: error: method does not override or implement a method from a supertype
    @Override
    ^
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\BaseGameActivity.java:122: error: cannot find symbol
    super.onActivityResult(request, response, data);
    ^
    symbol: variable super
    location: class Extensions.BaseGameActivity
    C:\Users\Gerald\AppData\Local\Temp\AndCBCB.tmp\app\src\main\java\Extensions\CRunGPGQuests.java:605: error: cannot find symbol
    return MMFRuntime.inst.checkForPermission(permission);
    ^
    symbol: method checkForPermission(java.lang.String)
    location: variable inst of type Runtime.MMFRuntime
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
    13 errors


    > Task :app:compileDebugJavaWithJavac FAILED


    FAILURE: Build failed with an exception.


    * What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.
    > 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. Run with --scan to get full insights.


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


    BUILD FAILED in 23s
    25 actionable tasks: 25 executed

    Please login to see this link.

  • Go to your Clickstore account and search for the product and should show all links available, this is the latest version

    GPGObjects_V200f_AndroidX_ForBuild293.7orAbove_211 022.exe

    Regards,


    Fernando Vivolo

    ... new things are coming ...

    Edited once, last by Yves (December 17, 2021 at 7:49 AM).

  • Go to your Clickstore account and search for the product and should show all links available, this is the latest version

    GPG Objects

    Hi Fernando, thank you for that.

    I did not have that download.

    I Downloaded and installed the GPGObjects_V200f_AndroidX_20211022.exe and I still have the same problems, if I add any of the GPG Objects to my game it will not build the app.

    Is there a safe way to uninstall all the GPG Objects and then reinstall them?

    The latest error:

    > 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:checkDebugAarMetadata
    > Task :app:generateDebugResValues
    > Task :app:generateDebugResources
    > Task :app:createDebugCompatibleScreenManifests
    > Task :app:extractDeepLinksDebug
    > Task :app:processDebugMainManifest
    > Task :app:processDebugManifest
    > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
    > Task :app:mergeDebugShaders
    > Task :app:compileDebugShaders NO-SOURCE
    > Task :app:generateDebugAssets UP-TO-DATE
    > Task :app:mergeDebugAssets
    > Task :app:compressDebugAssets
    > Task :app:processDebugJavaRes NO-SOURCE
    > Task :app:mergeDebugResources
    > Task :app:checkDebugDuplicateClasses
    > Task :app:mergeDebugJniLibFolders
    > Task :app:validateSigningDebug
    > Task :app:writeDebugAppMetadata
    > Task :app:writeDebugSigningConfigVersions
    > Task :app:processDebugManifestForPackage
    > Task :app:desugarDebugFileDependencies
    > Task :app:mergeDebugJavaResource
    > Task :app:mergeDebugNativeLibs


    > Task :app:stripDebugDebugSymbols
    Unable to strip the following libraries, packaging them as they are: libES1Renderer.so, libES2Renderer.so, libES3Renderer.so, libRuntimeNative.so, libgdx.so.


    > Task :app:processDebugResources
    > Task :app:mergeExtDexDebug


    > Task :app:compileDebugJavaWithJavac
    C:\Users\Gerald\AppData\Local\Temp\And8B80.tmp\app\src\main\java\com\clickteam\special\CTSignInClient.java:165: error: cannot find symbol
    public boolean isConnected() { return mGoogleSignInClient.getInstanceId() != 0;}
    ^
    symbol: method getInstanceId()
    location: variable mGoogleSignInClient of type com.google.android.gms.auth.api.signin.GoogleSignInClient
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error


    > Task :app:compileDebugJavaWithJavac FAILED


    FAILURE: Build failed with an exception.


    * What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.
    > 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. Run with --scan to get full insights.


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


    BUILD FAILED in 7s
    25 actionable tasks: 25 executed

    Please login to see this link.

  • Something was wrongly installed, please install latest release then GPG objects for Android and version 2.0f


    Hi Again,

    I have done everything that you mentioned to do and It still will not work.

    Short of Uninstalling Fusion (that will be a real pain) I don't know how to fix this.

    Sorry for the headache!

    Error Report now:

    > 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:checkDebugAarMetadata
    > Task :app:generateDebugResValues
    > Task :app:generateDebugResources
    > Task :app:createDebugCompatibleScreenManifests
    > Task :app:extractDeepLinksDebug
    > Task :app:processDebugMainManifest
    > Task :app:processDebugManifest
    > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
    > Task :app:mergeDebugShaders
    > Task :app:compileDebugShaders NO-SOURCE
    > Task :app:generateDebugAssets UP-TO-DATE
    > Task :app:mergeDebugAssets
    > Task :app:compressDebugAssets
    > Task :app:processDebugJavaRes NO-SOURCE
    > Task :app:mergeDebugResources
    > Task :app:checkDebugDuplicateClasses
    > Task :app:mergeDebugJniLibFolders
    > Task :app:validateSigningDebug
    > Task :app:writeDebugAppMetadata
    > Task :app:writeDebugSigningConfigVersions
    > Task :app:processDebugManifestForPackage
    > Task :app:desugarDebugFileDependencies
    > Task :app:mergeDebugJavaResource
    > Task :app:mergeDebugNativeLibs


    > Task :app:stripDebugDebugSymbols
    Unable to strip the following libraries, packaging them as they are: libES1Renderer.so, libES2Renderer.so, libES3Renderer.so, libRuntimeNative.so, libgdx.so.


    > Task :app:processDebugResources
    > Task :app:mergeExtDexDebug


    > Task :app:compileDebugJavaWithJavac
    C:\Users\Gerald\AppData\Local\Temp\AndCA7.tmp\app\src\main\java\com\clickteam\special\CTSignInClient.java:165: error: cannot find symbol
    public boolean isConnected() { return mGoogleSignInClient.getInstanceId() != 0;}
    ^
    symbol: method getInstanceId()
    location: variable mGoogleSignInClient of type com.google.android.gms.auth.api.signin.GoogleSignInClient
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error


    > Task :app:compileDebugJavaWithJavac FAILED


    FAILURE: Build failed with an exception.


    * What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.
    > 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. Run with --scan to get full insights.


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


    BUILD FAILED in 8s
    25 actionable tasks: 25 executed

    Please login to see this link.

  • I followed Naitors advice and it worked for me I was having the same error try and see if that helps:

    Gonna pin this here to anyone that's having trouble building an Android app, this should work fine with any modern Fusion 2.5 builds.
    If you already tried and failed, uninstall both JDK and Android Studio and try following the instructions bellow.
    Also, if it gives weird errors, try completely disabling your antivirus, it seems there are a few that can break the building part (I believe Avast can block it).
    Please, don't try to use old versions of standalone Android SDK Manager, it will not work with latest Fusion.

    - Install Android Studio, open and click on the Configure (usually a cog but it can be a vertical 3 dots icon on newer versions) icon on the welcome screen, there you can find the SDK Manager, select the latest stable SDK Platform, at the time of this message it was Android 10.0+ (R) and press Apply (or install)
    - On Fusion go to its Preferences (Tools menu > Preferences, General tab) and set the "Pathname of the JDK directory" to Android Studio path + the jre folder in front of it (for example: C:\Program Files\Android\Android Studio\jre)
    - For "Pathname of the Android SDK directory" you put the the url that appears on Android Studio's SDK Manager, then click Ok
    - Go to your mfa properties (Window tab) and set the build type to Android / OUYA application, on the Android tab of its properties click the button to use Newest installed SDK API
    - Now you can build it, if it asks for the JDK and SDK path, select the same you have put on Fusion's properties

    Edit: I've noticed that having too many unnecessary stuff installed on Android Studio can also make it fail to build (for example NDK will cause it to fail), so here's everything I got on mine:

    SDK Platforms:
    - Android 11.0 (R) - API Level 30
    (31 is the latest one, but it may fail, use it only if you need to)

    SDK Tools:
    - Android SDK Build-Tools
    - Android SDK Command Line Tools
    - Android Emulator
    - Android SDK Platform-Tools
    - Google USB Driver
    - Intel x86 Emulator Accelerator (HAXM Installer)

  • Ok, I tried everything mentioned, Starting to get frustrated.

    Nothing is working!

    Thanks for the help so far everybody, much appreciated!

    Please login to see this link.

Participate now!

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