• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

noBug Android target stopped running in 'release' mode

muruba

New member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Patreon Silver
Joined
Jul 5, 2017
Messages
230
Hi there,

I am going nuts trying to understand it: all of a suddent 31 version stopped 'release' working for my android on multiple examples, when 'debug' works fine. Not really sure where to look at, asking for help:

Debug (working fine)
"C:/tools/Cerberus/2017-07-31/bin/transcc_winnt" -target=Android_Game -config=Debug -run "C:/tools/Cerberus/2017-07-31/examples/mojo2/helloworld/helloworld.cxs"
TRANS cerberus compiler V2017-07-31
Parsing...
Semanting...
Translating...
Building...
Incremental java compilation is an incubating feature.
:app:clean
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2600Alpha1Library
:app:prepareComAndroidSupportAppcompatV72600Alpha1Library
:app:prepareComAndroidSupportSupportCompat2600Alpha1Library
:app:prepareComAndroidSupportSupportCoreUi2600Alpha1Library
:app:prepareComAndroidSupportSupportCoreUtils2600Alpha1Library
:app:prepareComAndroidSupportSupportFragment2600Alpha1Library
:app:prepareComAndroidSupportSupportMediaCompat2600Alpha1Library
:app:prepareComAndroidSupportSupportV42600Alpha1Library
:app:prepareComAndroidSupportSupportVectorDrawable2600Alpha1Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:processDebugManifest
:app:processDebugResources
:app:generateDebugSources
:app:incrementalDebugJavaCompilationSafeguard
:app:javaPreCompileDebug
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: C:\tools\Cerberus\2017-07-31\examples\mojo2\helloworld\helloworld.buildv2017-07-31\android\app\src\main\java\com\cerberus\cerberusgame\CerberusGame.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\tools\Cerberus\2017-07-31\examples\mojo2\helloworld\helloworld.buildv2017-07-31\android\app\src\main\java\com\cerberus\cerberusgame\CerberusGame.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources
:app:mergeDebugShaders
:app:compileDebugShaders
:app:generateDebugAssets
:app:mergeDebugAssets
:app:transformClassesWithDexForDebug
:app:mergeDebugJniLibFolders
:app:transformNativeLibsWithMergeJniLibsForDebug
:app:transformNativeLibsWithStripDebugSymbolForDebug
:app:processDebugJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForDebug
:app:validateSigningDebug
:app:packageDebug
:app:assembleDebug
:app:installDebug
Installing APK 'app-debug.apk' on 'SM-G920I - 7.0' for app:debug
Installed on 1 device.

BUILD SUCCESSFUL

Total time: 9.288 secs
Starting: Intent { cmp=com.cerberus.cerberusgame/.CerberusGame launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }
--------- beginning of system
--------- beginning of main

Release (doesn't start on Android device)
"C:/tools/Cerberus/2017-07-31/bin/transcc_winnt" -target=Android_Game -config=Release -run "C:/tools/Cerberus/2017-07-31/examples/mojo2/helloworld/helloworld.cxs"
TRANS cerberus compiler V2017-07-31
Parsing...
Semanting...
Translating...
Building...
Incremental java compilation is an incubating feature.
:app:clean
:app:preBuild UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:app:checkReleaseManifest
:app:preDebugBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2600Alpha1Library
:app:prepareComAndroidSupportAppcompatV72600Alpha1Library
:app:prepareComAndroidSupportSupportCompat2600Alpha1Library
:app:prepareComAndroidSupportSupportCoreUi2600Alpha1Library
:app:prepareComAndroidSupportSupportCoreUtils2600Alpha1Library
:app:prepareComAndroidSupportSupportFragment2600Alpha1Library
:app:prepareComAndroidSupportSupportMediaCompat2600Alpha1Library
:app:prepareComAndroidSupportSupportV42600Alpha1Library
:app:prepareComAndroidSupportSupportVectorDrawable2600Alpha1Library
:app:prepareReleaseDependencies
:app:compileReleaseAidl
:app:compileReleaseRenderscript
:app:generateReleaseBuildConfig
:app:generateReleaseResValues
:app:generateReleaseResources
:app:mergeReleaseResources
:app:processReleaseManifest
:app:processReleaseResources
:app:generateReleaseSources
:app:incrementalReleaseJavaCompilationSafeguard
:app:javaPreCompileRelease
:app:compileReleaseJavaWithJavac
:app:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: C:\tools\Cerberus\2017-07-31\examples\mojo2\helloworld\helloworld.buildv2017-07-31\android\app\src\main\java\com\cerberus\cerberusgame\CerberusGame.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\tools\Cerberus\2017-07-31\examples\mojo2\helloworld\helloworld.buildv2017-07-31\android\app\src\main\java\com\cerberus\cerberusgame\CerberusGame.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:app:compileReleaseNdk UP-TO-DATE
:app:compileReleaseSources
:app:lintVitalRelease
:app:mergeReleaseShaders
:app:compileReleaseShaders
:app:generateReleaseAssets
:app:mergeReleaseAssets
:app:transformClassesWithDexForRelease
:app:mergeReleaseJniLibFolders
:app:transformNativeLibsWithMergeJniLibsForRelease
:app:transformNativeLibsWithStripDebugSymbolForRelease
:app:processReleaseJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForRelease
:app:validateSigningRelease
:app:packageRelease
:app:assembleRelease

BUILD SUCCESSFUL

Total time: 5.886 secs
Starting: Intent { cmp=com.cerberus.cerberusgame/.CerberusGame launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }
Error type 3
Error: Activity class {com.cerberus.cerberusgame/com.cerberus.cerberusgame.CerberusGame} does not exist.
--------- beginning of main
--------- beginning of system
 
Interesting. Does it work when you copy the release apk to the device and start it there?
 
Yes, installed and started fine :(
 
Haha oh well - at least it does! This could be something with that signing thing. When you start a debug build it will have the debug key and install probably fine. When you afterwards start a release build it will probably fail because the release key is used and in case there is already an apk with the same id installed, Android will reject it because of the different key. Don't know if that's the case here...
 
Not sure if that could be a problem.... The version number must be higher I think too when you want to overwrite an app, or?
 
Yeah... it is the same for any example I have never run before... anyways must be some annoying glitch on my end somewhere... Thanks for the help!
 
It never worked for me, release just stops and debug complains about no device attached.
I have to compile for release and manually copy the APK to mi device.
 
It started working for me again and I didn't do anything for it, so can't help really...
 
Back
Top Bottom