Yet again returning to my old speech therapy app (doing well out there).
I thought of not having go through Android Studio each time building an .aab archive, so I tried building one in the Gideros Exporter. But I get this every time:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not open proj generic class cache for build file 'D:\Google Drive\DPX\Exports Android\Ljuda med Boo\tmp\app\build.gradle' (C:\Users\thoma\.gradle\caches\7.5\scripts\eq8cj0qydz2r5e73s4tusmb0r).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63
I have no idea what went wrong. It seems to be something with gradle (don't know how that works, should I?). A "normal" export works without issues. Any ideas, anyone?
Comments
from here it appears it is a java version issue
https://stackoverflow.com/questions/68597899/bug-exception-in-phase-semantic-analysis-in-source-unit-buildscript-unsup
and there is also this
https://stackoverflow.com/questions/32513740/gradle-build-failure-could-not-open-proj-class-cache-for-build-file
Likes: saeys
But then again, there is also a 8.0 folder, and also this message (whatever that means):
Does Gradle use different versions of itself in the same process?
I guess I need to downgrade my Java to test my luck.
I don't know if that might help but I specified SDK dir and JDK dir using those coming with android studio
C:\Users\USER\AppData\Local\Android\Sdk
C:/Program Files/Android/Android Studio1/jbr
Likes: MoKaLux
Oh, so I don't actually need a separate Java install since there is already one included in Android Studio install?
Thanks a lot guys!
Likes: MoKaLux
To be able to update an app in Google Play Console after the end of this month, the app's target level needs to be at least 34. My Gideros exports fails when using anything newer than Android SDK Version 33 (or if I leave the optional SDK and Tools fields blank), because it seems the Android Gradle plugin version cannot handle it. But the export succeeds when setting Android Target Version to 34 (or 35), leaving the Android SDK Version and Tools at 33 / 33.0.3. Is Android Target Version exactly the same as targetSdkVersion? (I can find no manifest when using the Gideros exporter only)
Likes: keszegh
Leave all paths empty (Gideros picks Android Studio paths).
If that doesn't work it may be the ad plugin if you are using it, in that case do as you did.
Hope this helps!?
PS: I updated one app to 34 (no ad) and that worked
Likes: saeys
It turns out that I actually can use SDK 34 with Tools 34.0.0 (but not the latest available 35 / 35.0.0), allthough the export log tells me that the current gradle (7.4.2) is tested up to 33. Good enough for me
apk or aab makes no difference in successful export or not.
Leaving all paths empty doesn't seem to make any difference either.
Leaving the optional Android SDK and Tools Versions fields empty leads to failed export (I believe export then picks the highest available SDK (35) which obviously isn't compatible with... the gradle?)
It would be nice if there were simple english explanations of (and the relations between) these terms in the gideros wiki:
Android Target Version
Android SDK Version
Android Tools Version
Gradle
Likes: MoKaLux
how can i do that? perhaps gideros needs to be updated before i can do that? thanks
when trying to export i get the following red lines:
"Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times."
"FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:bundleReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2ProcessResourcesRunnable
> Android resource linking failed
aapt2.exe E 08-14 09:13:27 5800 17060 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
aapt2.exe E 08-14 09:13:27 5800 17060 ApkAssets.cpp:149] Failed to load resources table in APK 'C:\Users\user\AppData\Local\Android\sdk\platforms\android-35\android.jar'.
error: failed to load include path C:\Users\user\AppData\Local\Android\sdk\platforms\android-35\android.jar.
* 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 23s
Exec returned: 1
Export failed! See details above."
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
sdk 35 isn't released yet, still in beta
btw what do they mean by "You won't be able to release app updates (17 days away)"?
the app stays on the store but when i want to update then i need to send an apk/aab with a newer sdk? that's fine with me as i don't plan any updates. or do they pull the app from the store?
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
I have a few apps in the same situation, but they've not been downloaded enough for them being worth to upgrade. I feel like it is ok they disappear from the store until I feel like updating them.
Likes: MoKaLux
just google makes this so hard. the convenience of stores has the drawback that all the apps in the world disappear at some point unlike old dos or console rom games that can become abandonware but still available. but i think we had this discussion before. it's just still annoying.
thanks for keeping gideros updated so that we can update our apps as well relatively easily.
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game