• 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

Compilation problems

Wingnut

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,414
I got some problems to compile to Android after finally updating being a daredevil and updating to Big Sur (macOS 11.52.2) today?

Before this it complained about a JDK so I installed. The newest one (jdk-16.0.2_osx-x64_bin) fave me this message so I tried the
one I've used before (jdk-8u261-macosx-x64) and it's the same.. o_O




Big Sur (macOS 11.52.2).png
 
I would try using a previous version of the JDK, see if they have changed anything on ver16, which, they probably have... Google and Apple do this all of the time, dont say anything, and bang, in goes your belly button hole... I spied JDK 11 might be a good one (Middle of the road), but 15 also gets rid of it it seems if your looking for newer!

Nothing spoiling having a pop... Then, if all is gravy, maybe Phil or Mike can update the "Target" docs with my little problem with DrawImage (As in, use a proper device, dont rely on the simulator for the iOS target, that'll cover all bases until they get a good look), and when it comes to Android, whatever version JDK you find works, then put that information in the docs too as an "official" JDK to work with the system... Coming to a new language and having outdated docs isnt good, I saw Wonkey had a problem with Android when I was nosing over at SyntaxBomb, seems to be fixed, yet, a) They didnt tell anyone it was fixed, and b) it looks like they havent disclosed which NDK to use in the docs... So again, users are going to end up running around in circles with that one as the user that posted has said Android Studio uses a side-by-side setup regarding the NDK, which you can install multiple versions of the NDK, but the docs show "ndk-bundle", and, well, it just doesnt work like that now it seems.

Docs are important, and boring as they are... Need updating as soon as something is changed, or a problem becomes apparent (With fixes explained), it saves a load of turmoil, the last thing anyone wants to do is trail through forums looking for an answer which can be added to the docs in minutes! :D

Dabz
 
Last edited:
Did you try the inbuilt jdk that comes with android studio? It's in the jre folder of the installation.
Regarding the docs we are a bit in a transition phase, because I am working on a new version with an other structure.
 
Oh I know @Phil7 I spied that, looking good! ;)

But, just general experience, there is nothing worse then out of date docs because it is indeed a proper off putter to some, even me, and I'm generally prepared to dig for stuff as well, and I only ever really ask for help when I'm proper stuck, and its bloody annoying when you spend ages looking, then post and someone goes "Oh yes, you just need X now to get that working", like, say, adding something to PATH in the env-vars... And I'm like "IF YOU NEED X TO GET IT WORKING WHY ISNT IT STATED YOU NEED BLOODY X TO GET IT WORKING????"

And then they post a link buried deep to the dark corners of a forum that has some odd title! :D

Maybe its just me, but I'm funny like that, and have picked up a fridge magnet or two like that many a time! :p

Here, I know you's do this for free so, one cannot grumble, just saying, docs are more important then anyone could ever realise, even if writing them is like watching wisdom teeth grow! ;) hehehe

So, maybe just for now, if Jimmy fixes it with a different JDK, then sticky toffee it in the Android forum, likewise, my iOS issue, bang one up there for now until yous have had a look, more people will be buying M1 Macs and/or upgrading, so, at least they'll have a heads up! :)

Just an idea! :)

Dabz
 
I'm like "IF YOU NEED X TO GET IT WORKING WHY ISNT IT STATED YOU NEED BLOODY X TO GET IT WORKING????"

Wow, guess we have the new maintainer of CX here because he knows how to do it and screams it out.

So, maybe just for now, if Jimmy fixes it with a different JDK, then sticky toffee it in the Android forum, likewise, my iOS issue, bang one up there for now until yous have had a look, more people will be buying M1 Macs and/or upgrading, so, at least they'll have a heads up!
About your "problem".... what looks like Apple fucked it up... you expect us to fix it.

Wow.

@Phil7 this attitude is exactly why I am questioning my reasoning to keep working on this. I am taking a break. Can spend my weekends much much better.
 
Wow, guess we have the new maintainer of CX here because he knows how to do it and screams it out.

Not really Mike, if you note my smileys, you'd see I'm not looking to be offensive, I was just saying, and just being over the top, and you seem to have missed me stating I realise you do this for free so one cannot grumble!

About your "problem".... what looks like Apple fucked it up... you expect us to fix it.

Erm, no... Did I say you's had to fix that, I'm just saying make it more accessible for people to find "my problem" if they run into it... You were the one saying you needed to invest in a M1 mac to have a look.

Listen, if you's dont want suggestions while I'm learning your piece of software, that's fine... I'll just get on with it, I'm not here to upset anyone.

Dabz
 
Ah Androidl Studio has a built-in one I forgot that. I was updating Android Studio and it asked for a JDK afterwards though?

Maybe I could have just tried to re-install Android Studio.. but I doubt that. Here I am re-installing macOS from scratch on my 2012 machine which worked like clockwork before messing around with it sigh.. On this machine now Xcode is not allowed because I used the same Apple ID on the newer one I guess.. I used up this whole day doing nothing but manually unzipping Xcode 12.4 tip and gave up after a few hours and seeing that it almost ate my whole 128gb stick. Why is development tools this fat nowdadays?! Slim it down PLZ (n):cautious:

I'm now actually thinking about trying Mint Linux to see if it would be a better Android development platform.
Maybe I should put in ChromeOS which has become available for all devices now and try Android Studio on that? I
The truth is that I love macOS though, (except Xcode!!) and also, Android Studio won't get any easier on Linux. We'll see where this will take me..

I was coding along just fine until the OS and tools needed updating
I had two working machines yesterday and I managed to ruined both Gahhh. The joy of programming.
 
On the positive side I really had time to dive deeper into Parrot Security (Linux) and I love it, If I could get Cerberus-X working on THAT, that would be a win!


But right now, I just need to be able to compile Android correctly for the store.
 
I think I can try to run Cerberus on Parrot Security. Last time I tried I got it working on Linux Mint and Manjaro. I have them installed on a usb-stick including Cerberus so I can just plug them in and have a working development machine. With Windows and Linux jdk was really no problem just set the java config variable in the bin/config.winnt+linux.txt file to the jre folder of android studio and it worked.
With macOS I am still kind of a noob, but I will see what I can do tomorrow.

just general experience, there is nothing worse then out of date docs
This is true and also what you wrote about hidden knowledge inside the forum. With the java sdk I will put it in the docs soon, but with the iOS M1 bug I am not sure. If this problem persists this could be necessary but other than that I prefer Apple to fix their bugs or us to find a workaround.

@Dabz Regarding your wording I didn't feel offended like @MikeHart seems to be. The Critics regarding the docs are valid as I didn't make enough progress in the last few month. Besides that English is not my native language, so I tend to doubt my own judgement when reading between the lines and I am German, so humor is none of my business 🙃

if you's dont want suggestions while I'm learning your piece of software
Suggestions are great, especially if coming from a beginners perspective. Maybe you could make them sound more like suggestions.
 
Last edited:
reinstalled android and got this now


TRANS cerberus compiler V2021-07-25

Parsing...

Semanting...

Translating...

Building...

> Task :app:clean

> 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:checkDebugAarMetadata

> Task :app:generateDebugResValues

> Task :app:generateDebugResources

> Task :app:javaPreCompileDebug

> Task :app:createDebugCompatibleScreenManifests

> Task :app:mergeDebugResources

> 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:processDebugJavaRes NO-SOURCE

> Task :app:compressDebugAssets

> Task :app:mergeDebugJavaResource

> Task :app:checkDebugDuplicateClasses

> Task :app:desugarDebugFileDependencies

> Task :app:mergeExtDexDebug

> Task :app:mergeDebugJniLibFolders

> Task :app:mergeDebugNativeLibs NO-SOURCE

> Task :app:stripDebugDebugSymbols NO-SOURCE

> Task :app:validateSigningDebug

> Task :app:processDebugManifestForPackage

> Task :app:processDebugResources



> Task :app:compileDebugJavaWithJavac

Note: /Applications/cerberus/examples/mojo2/drawprimitives/drawprimitives.buildv2021-07-25/android/app/src/main/java/com/cerberus/cerberusgame/CerberusGame.java uses or overrides a deprecated API.



> Task :app:compileDebugSources

Note: Recompile with -Xlint:deprecation for details.

Note: /Applications/cerberus/examples/mojo2/drawprimitives/drawprimitives.buildv2021-07-25/android/app/src/main/java/com/cerberus/cerberusgame/CerberusGame.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

> Task :app:dexBuilderDebug

> Task :app:mergeDexDebug

> Task :app:packageDebug

> Task :app:assembleDebug



> Task :app:installDebug

Installing APK 'app-debug.apk' on 'GT-N7105 - 7.1.2' for app:debug

Unable to install /Applications/cerberus/examples/mojo2/drawprimitives/drawprimitives.buildv2021-07-25/android/app/build/outputs/apk/debug/app-debug.apk

com.android.ddmlib.InstallException: INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.cerberus.cerberusgame signatures do not match the previously installed version; ignoring!

at com.android.ddmlib.internal.DeviceImpl.installRemotePackage(DeviceImpl.java:1224)



at com.android.ddmlib.internal.DeviceImpl.installPackage(DeviceImpl.java:1050)

> Task :app:installDebug FAILED

26 actionable tasks: 26 executed

at com.android.ddmlib.internal.DeviceImpl.installPackage(DeviceImpl.java:1026)

at com.android.ddmlib.internal.DeviceImpl.installPackage(DeviceImpl.java:1015)

at com.android.build.gradle.internal.testing.ConnectedDevice.installPackage(ConnectedDevice.java:130)

at com.android.build.gradle.internal.tasks.InstallVariantTask.install(InstallVariantTask.java:157)

at com.android.build.gradle.internal.tasks.InstallVariantTask.lambda$doTaskAction$1(InstallVariantTask.java:94)





.........





at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)

at java.lang.Thread.run(Thread.java:748)



FAILURE: Build failed with an exception.



* What went wrong:

Execution failed for task ':app:installDebug'.

> java.util.concurrent.ExecutionException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.cerberus.cerberusgame signatures do not match the previously installed version; ignoring!



* 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 https://help.gradle.org



BUILD FAILED in 9s

TRANS FAILED: Android build failed.

Done.
 
This was debug, which did not work, release mode works it seems.

EDIT I deleted the app and then debug also works. I'm not used to get this load of errors because of this. It used to complain about apk is not matching using a line or two. So finally got Android compilation working on one computer, but the first error is still exiting on the other computer..
 
Last edited:
Todays report :

* One of the systems the one with Newest Catalina + Newest Android Studio, which works.*

* The other system was upgraded to BigSur, this does not work any more.
Which. I also accidentally updated JAVA SE 16 when AndroidStudio started asking for a JDK after the OS update. Of course I tried a lot of things including to delete every trace of it and reinstall JAVA 8 301. Both systems show JAVA SE 8 301 in the system preferences now.


Still my Big Sur system gives me this message :


TRANS cerberus compiler V2021-07-25
Parsing...
Semanting...
Translating...
Building...
> Task :app:clean
> Task :app:preBuild UP-TO-DATE
> Task :app:preReleaseBuild UP-TO-DATE
> Task :app:compileReleaseAidl NO-SOURCE
> Task :app:compileReleaseRenderscript NO-SOURCE
> Task :app:generateReleaseBuildConfig
> Task :app:javaPreCompileRelease
> Task :app:checkReleaseAarMetadata
> Task :app:generateReleaseResValues
> Task :app:generateReleaseResources
> Task :app:createReleaseCompatibleScreenManifests
> Task :app:extractDeepLinksRelease
> Task :app:mergeReleaseResources
> Task :app:processReleaseMainManifest
> Task :app:processReleaseManifest
> Task :app:mergeReleaseNativeDebugMetadata NO-SOURCE
> Task :app:mergeReleaseShaders
> Task :app:compileReleaseShaders NO-SOURCE
> Task :app:generateReleaseAssets UP-TO-DATE
> Task :app:mergeReleaseAssets
> Task :app:checkReleaseDuplicateClasses
> Task :app:desugarReleaseFileDependencies
> Task :app:compressReleaseAssets
> Task :app:mergeExtDexRelease
> Task :app:processReleaseManifestForPackage
> Task :app:processReleaseResources
> Task :app:compileReleaseJavaWithJavac FAILED
19 actionable tasks: 19 executed

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.

* 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 https://help.gradle.org

BUILD FAILED in 3s
TRANS FAILED: Android build failed.
Done.


I tried last night to check all the differences in the systems but I fail to understand why this error message comes.

(Android Studio can compile to device just fine by itself on both systems)
 
All I've learned googling is that this problem is common even before BigSur and pops up with React, Flutter etc.
I tried a lot of what other ppl did to solve those issues but zero success.

I got an Android machine now at least but the fact that the really nice machine is unusable for Cerberus is a bummer.
 
Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
This doesn't look to me as a folder to a jdk. Are you sure it is installed there?
 
I'm not sure if there are any hidden files but that location seems empty on both machines?
 
This doesn't look to me as a folder to a jdk. Are you sure it is installed there?
Your right, it's not.
Apple used to ship JDK 6 with their OS X and the locations have changed over the years.
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home is where the JRE would be for the browser.
The usual path for all Oracle JDK installs is /Library/Java/JavaVirtualMachines/

If you want to install a JDK for Mac OS, then follow https://java.tutorials24x7.com/blog/how-to-install-openjdk-12-on-macos
 
Thanks. I followed first step looking what I have installed and I got this :

/usr/libexec/java_home -V

Matching Java Virtual Machines (2):
1.8.301.09 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
1.8.0_301 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_301.jdk/Contents/Home
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home


EDIT : Why does it show the last path twice above? Is that an extra path that got listed?


On the working one it just says :
1.8.0_301 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_301.jdk/Contents/Home
 
Last edited:
I wonder if this is one of those std mixups..

I checked and this is the layout
Users/username/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home < no Java
vs
Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home. < Java exist here
 
DIT : Why does it show the last path twice above? Is that an extra path that got listed?
Because the option -V will list all installed java versions. The last line is showing the current set Java path.
Here's another link for you to read.
 
Back
Top Bottom