User Tag List

Results 1 to 8 of 8

Thread: extensions compilation crash related to gradle

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    May 2017
    Location
    Nantes
    Posts
    150
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    Question extensions compilation crash related to gradle

    Hi @Fernando

    I have a problem related to gradle.

    I developed 2 extensions for Android : one for AWS S3 and the other for OneSignal.

    They work perfectly when they are not used together.

    BUT when i put the two extensions in the same project it refuses to build and i get the error message below. I'm 99% sure it's related to gradle files and the way fusion uses them.
    I attached the 2 files maybe you can see the problem as you are experienced in android developements for Fusion.

    Can you help me please ?
    build for Onesignal.zip build_awss3.zip
    :

    > Configure project :
    it is windows 10

    > Configure project :app
    WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
    The current default is 'false'.


    > Task :app:preBuild UP-TO-DATE
    > Task :app:preDebugBuild UP-TO-DATE
    > Task :app:compileDebugAidl NO-SOURCE
    > Task :app:compileDebugRenderscript NO-SOURCE
    > Task :app:checkDebugManifest
    > Task :app:generateDebugBuildConfig
    > Task :app:mainApkListPersistenceDebug
    > Task :app:generateDebugResValues
    > Task :app:generateDebugResources
    > Task :app:createDebugCompatibleScreenManifests
    > Task :app:processDebugManifest
    > Task :app:mergeDebugShaders
    > Task :app:compileDebugShaders
    > Task :app:generateDebugAssets
    > Task :app:mergeDebugAssets
    > Task :app:processDebugJavaRes NO-SOURCE
    > Task :app:checkDebugDuplicateClasses
    > Task :app:mergeDebugResources
    > Task :app:processDebugResources
    > Task :app:validateSigningDebug
    > Task :app:signingConfigWriterDebug
    > Task :app:mergeDebugJniLibFolders
    > Task :app:mergeLibDexDebug
    > Task :app:javaPreCompileDebug

    > Task :app:compileDebugJavaWithJavac
    C:\Users\m_jou\AppData\Local\Temp\AndFC5A.tmp\app\ src\main\java\Extensions\CRunAWSS3.java:9: error: package com.amazonaws.auth does not exist
    import com.amazonaws.auth.CognitoCachingCredentialsProvid er;
    ^
    C:\Users\m_jou\AppData\Local\Temp\AndFC5A.tmp\app\ src\main\java\Extensions\CRunAWSS3.java:10: error: package com.amazonaws.mobileconnectors.s3.transferutility does not exist
    import com.amazonaws.mobileconnectors.s3.transferutility. TransferListener;
    ^
    C:\Users\m_jou\AppData\Local\Temp\AndFC5A.tmp\app\ src\main\java\Extensions\CRunAWSS3.java:11: error: package com.amazonaws.mobileconnectors.s3.transferutility does not exist
    import com.amazonaws.mobileconnectors.s3.transferutility. TransferObserver;
    ^
    C:\Users\m_jou\AppData\Local\Temp\AndFC5A.tmp\app\ src\main\java\Extensions\CRunAWSS3.java:12: error: package com.amazonaws.mobileconnectors.s3.transferutility does not exist
    import com.amazonaws.mobileconnectors.s3.transferutility. TransferState;
    ^
    C:\Users\m_jou\AppData\Local\Temp\AndFC5A.tmp\app\ src\main\java\Extensions\CRunAWSS3.java:13: error: package com.amazonaws.mobileconnectors.s3.transferutility does not exist
    import com.amazonaws.mobileconnectors.s3.transferutility. TransferUtility;
    ^
    C:\Users\m_jou\AppData\Local\Temp\AndFC5A.tmp\app\ src\main\java\Extensions\CRunAWSS3.java:14: error: package com.amazonaws.regions does not exist
    import com.amazonaws.regions.Regions;

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    May 2017
    Location
    Nantes
    Posts
    150
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Ok i found the problem.

    When Fusion build the app, it merges all sources in /app folder.
    So the extensions who have a module-level build.gradle file will see the build.gradle replaced by the last extension sources copied to this folder.


    I don't see any solution to this real problem. And fixing manualy isn't a solution.

    So @Fernando can you please give us the solution to this problem ? How the module-level build.gradle should be managed by extension devs ?

  3. #3
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,561
    Mentioned
    257 Post(s)
    Tagged
    4 Thread(s)
    mmi think in the past i gave/showed you an extension example to handle prepareAndroidBuild, did I?
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    May 2017
    Location
    Nantes
    Posts
    150
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    yes you showed me the prepareAndroidBuild, but i didn't identify it as also used to populate build.gradle... (this is very new to me so it's not easy :s )

    I'll try to understand and use the gradle part . Thanks !

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    May 2017
    Location
    Nantes
    Posts
    150
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Can't compile with the code you provided. There are multiple variables that are not defined in DarkEdif. I downloaded also the SDK provided on clickteam site to try to copy them from there but they are not present in the SDK too.

    Maybe your SDK version is newer than the one published ?

    Severity Code Description Project File Line Suppression State
    Error C2039 'mvReturnCode': is not a member of 'mv' AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1081
    Error C2061 syntax error: identifier 'LPEDATA' AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1091
    Error C2065 'edPtr': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1096
    Error C3861 'mvIsAndroidGradle': identifier not found AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1096
    Error C2039 'mvGetVersion': is not a member of 'mv' AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1100
    Error C2065 'edPtr': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1103
    Error C2065 'IDS_WARNING_MSG_TEXT': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1105
    Error C2065 'IDS_WARNING_TIT_TEXT': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1105
    Error C2065 'IDS_WARNING_MSG_TEXT': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1109
    Error C2065 'IDS_WARNING_TIT_TEXT': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1110
    Error C2039 'mvReturnCode': is not a member of 'mv' AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1114
    Error C2065 'CPropIntValue': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1122
    Error C2065 'pvba': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1122
    Error C2065 'CPropIntValue': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1122
    Error C2059 syntax error: ')' AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1122
    Error C2065 'pvba': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1123
    Error C2065 'androidDirectoryPathname': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1130
    Error C2065 'edPtr': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1214
    Error C2065 'edPtr': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1214
    Error C2660 'wcstombs': function does not take 1 arguments AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1214
    Error C2065 'androidDirectoryPathname': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1238
    Error C2065 'VER_287': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1300
    Error C2065 'androidDirectoryPathname': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1307
    Error C2065 'androidDirectoryPathname': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1321
    Error C2039 'mvReturnCode': is not a member of 'mv' AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1342
    Error C2039 'mvReturnCode': is not a member of 'mv' AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1364
    Error C2065 'androidDirectoryPathname': undeclared identifier AWSS3 C:\Users\m_jou\OneDrive\Bureau\App dejeuner\_Extensions\__My Extensions\AWS S3 BUCKET\MMF2Exts-master\DarkEdif\AWSS3\Edittime.cpp 1374

  6. #6
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,561
    Mentioned
    257 Post(s)
    Tagged
    4 Thread(s)
    sorry with this small information is really, really hard to help you.

    the best SDK you have is teh runtime itself plus other objects

    not sure what lib is this, how you are implementing, etc.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  7. #7
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    May 2017
    Location
    Nantes
    Posts
    150
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    i understand, thank you for your help. I can send you the source, maybe it will be easyer for you ?

  8. #8
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,561
    Mentioned
    257 Post(s)
    Tagged
    4 Thread(s)
    as i reply in your PM, you have everything there follow the lines where teh runtime set teh implementation for this object and replace with yours
    Regards,


    Fernando Vivolo

    ... new things are coming ...

Similar Threads

  1. AndroidPlus needs a build.gradle?
    By warlords in forum Android Export Module 2.5
    Replies: 12
    Last Post: 1st May 2020, 04:17 PM
  2. Localisation object compilation crash
    By haoujey in forum Android Export Module 2.5
    Replies: 3
    Last Post: 26th July 2019, 05:10 PM
  3. Odd compile error Gradle / Admob with latest built.
    By Perry in forum Android Export Module 2.5
    Replies: 11
    Last Post: 28th May 2019, 11:01 PM
  4. Crash related to Admob Interstitial
    By DaveC in forum Android Export Module 2.5
    Replies: 3
    Last Post: 22nd February 2015, 08:46 PM
  5. Crash related to runtime created backdrops
    By crusher in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 12th December 2011, 06:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •