Posts by Gary_Molton

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 built several apps now to the latest version of Android but can't build one that uses the compass object.
    I've looked for a newer version but my shop downloads only have one with the original build date.
    Is there a newer one available or a solution to making it build properly.
    If i remove the compass then the app builds OK.
    Here is a section of the error message on build failure.

    symbol: method verifyResponseApi23(String[],HashMap<String,String>)
    location: class CRunCompass
    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.
    5 errors

    > Task :app:compileReleaseJavaWithJavac FAILED

    FAILURE: Build failed with an exception.

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

    You must use Build API 31 minimum



    I actually started a new Fusion application with no objects and it still failed to build.
    I think my Android SDK manager is out of date as it's not getting the latest APIs. I've noticed in the forum notes that I now need to download the whole android studio to access the latest SDK manager so I will do that.
    The error notes clearly show there is an issue with the API versions, whichever one I try to build to, as the build-tools for the later versions are not showing in my SDK manager.

    Did you update with the version available at Extension Manager

    No unfortunately. I've now updated to webview v2.3a but it still give the same error message.

    I've also made sure all of the other objects are up to date.
    Then I ran the tools>Android checker, which came up green so I'm thinking everything is installed OK however I noticed that although I have all of the Android APIs installed I only go up to version 30 in the Android build tools. I'm not sure how to update the build tools so I tried building to API 30, target 11.0 and received the much smaller list of error messages shown below. These appear to show it's still wants api 31 somewhere. But I haven't found out where from yet.

    * What went wrong:
    Execution failed for task ':app:checkReleaseAarMetadata'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
    > The minCompileSdk (31) specified in a
    dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
    is greater than this module's compileSdkVersion (android-30).
    Dependency: androidx.appcompat:appcompat:1.4.1.
    AAR metadata file: C:\Users\gary\.gradle\caches\transforms-3\f052799bd1514fad727c14656fc8e64d\transformed\appcompat-1.4.1\META-INF\com\android\build\gradle\aar-metadata.properties.

    I get a similar message:

    > Task :app:preBuild UP-TO-DATE
    > Task :app:preReleaseBuild UP-TO-DATE
    > Task :app:writeReleaseApplicationId
    > Task :app:analyticsRecordingRelease
    > Task :app:compileReleaseRenderscript NO-SOURCE
    > Task :app:generateReleaseResValues
    > Task :app:generateReleaseResources
    > Task :app:createReleaseCompatibleScreenManifests
    > Task :app:extractDeepLinksRelease
    > Task :app:processReleaseMainManifest
    > Task :app:processReleaseManifest
    > Task :app:processApplicationManifestReleaseForBundle
    > Task :app:checkReleaseDuplicateClasses
    > Task :app:compileReleaseAidl NO-SOURCE
    > Task :app:generateReleaseBuildConfig
    > Task :app:checkReleaseAarMetadata
    > Task :app:javaPreCompileRelease
    > Task :app:processReleaseManifestForPackage
    > Task :app:mergeReleaseShaders
    > Task :app:compileReleaseShaders NO-SOURCE
    > Task :app:generateReleaseAssets UP-TO-DATE
    > Task :app:mergeReleaseAssets
    > Task :app:processReleaseJavaRes NO-SOURCE
    > Task :app:desugarReleaseFileDependencies
    > Task :app:mergeReleaseResources
    > Task :app:mergeReleaseJavaResource
    > Task :app:mergeReleaseJniLibFolders
    > Task :app:mergeExtDexRelease
    > Task :app:collectReleaseDependencies
    > Task :app:configureReleaseDependencies
    > Task :app:parseReleaseIntegrityConfig
    > Task :app:writeReleaseAppMetadata
    > Task :app:validateSigningRelease
    > Task :app:bundleReleaseResources
    > Task :app:mergeReleaseNativeLibs
    > Task :app:processReleaseResources

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

    > Task :app:compileReleaseJavaWithJavac FAILED
    C:\Users\gary\AppData\Local\Temp\And4B84.tmp\app\src\main\java\Extensions\CRunWebView2.java:39: error: package androidx.webkit does not exist
    import androidx.webkit.WebViewClientCompat;
    ^

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':app:compileReleaseJavaWithJavac'.
    > 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.

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

    You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

    See Please login to see this link.

    BUILD FAILED in 6s
    30 actionable tasks: 30 executed


    I'm running 295.5 and have updated Java and the Android SDK
    Build API 31 with minimum 5 and target 12
    If a use build API 30 with target 12 I do get a similar but different error message

    Is there a solution you found for this?

    Thanks

    Is there a new location for this example. It's no longer there.
    I'm just upgrading the version 3 of inapp purchasing but can't retrieve any data.
    I've set build api to 30 version 11. My Android SDK has 30 installed.
    I've not changed my public key and tried several formats for my inapp list e.g. com.company.appname.inappname but no joy.
    Adding a random developer payload seems to make no difference.
    I assume I should be able to simply 'Query Sku details' (using Is Billing Available) then request the ProductPrice$("In-app Android)",1) etc. But nothing appears, not even an error message.
    Is there something I'm missing?
    Or a good example file would be much appreciated.

    Has anyone found a solution to this crash
    libsystem_kernel.dylib`__abort_with_payload:

    I'm just loading text files that are stored in the binary data. Format is UTF-8.
    I do this a lot but only some files fail. Many of the files load external pictures but I can't see any difference between the ones that work and the ones that don't.
    I've run out of ideas and the solutions I've found online don't work.
    Appreciate any suggestions.

    Thanks Fernando
    I found some commas that looked like commas but weren't. It now passes all of the data and displays it in an alert box.
    But the following js code does not run within the webview2 object whereas it does when I use the html5 object from a webpage.

    This is in exactly the same js file used for both programs with the same data.
    This probably has nothing to do with the MMF object but any ideas would be greatly appreciated.

    //define the xapi statement being sent
    var statement ={

    "actor": {
    "mbox": actmbox,
    "name": actname,
    "objectType": "Agent"
    },
    "verb": {
    "id": verbId,
    "display": {verb}
    },
    "object": {
    "id": objectId,
    "definition": {
    "name": {"en-US": objname},
    "description": {"en-US": objdescrip}
    },
    "objectType": "Activity"
    },
    "result": {
    "duration": resduration,
    "score": {
    "scaled": respercent,
    "min": 0,
    "max": respossible,
    "raw": rescorrect
    },
    "response" : resresponse
    }

    }; //end statement definition

    I've attached an example file here.
    This will allow any MMF app to send results to any standard xapi LRS system. So really important for all elearning.
    The html5 version works fine but I can’t get the webview2 working.

    The xapi.js file is the standard format provided for the LRS system. The html5 talks directly with this.

    I’ve added a new appxapisend.html for the webview2 object.
    The startapp.ini contains my programs data file but you probably won't need this. PM me if you want to test how it posts to my LRS at yetanalytics.io

    I'm struggling to get the correct format with 'execute snippet' in webview2 and would appreciate some suggestions.
    I'm posting to an LRS system using xapi and this works fine from a webpage using the HTML5 object along with a list of Add String and Add Integer lines plus the Call Function 'send_statement'. The send_statement function is in the webpage.
    However, I can't get it working using the webview2 object for android and exe etc.
    I'm thinking it should be fairly simple provided I can get the format correct. Which I can't.
    So first I use the webview object to load a URL with the js send_statement function in.
    Then I execute a snippet in the webview object ="send_statement" with argument"XX"

    I've tried numerous format for the "XX" but nothing has worked so far. Do I use Newlines or ; etc.
    I'll also need to add strings, integers and Float parameters.
    It would be great if someone has an example of something similar.