View Issue Details

IDProjectCategoryView StatusLast Update
0031105RunnerAndroidPublic2021-08-04 11:34
ReporterStewart BishopAssigned ToCoreTech 
PriorityMediumSeverityB - MajorReproducibility100%
Status ResolvedResolutionNo Change Required 
PlatformAndroidOSWindows 10OS Version
Product Version2.2.3 
Target VersionFixed in Version 
Summary0031105: Android: Unable to build project extensions "This is caused by library dependencies that have been compiled using Java 8"
DescriptionIf your project has an extension that is built using Java 8 you'll get the following error:

Dex: Error converting bytecode to dex:
Cause: Dex cannot parse version 52 byte code.
This is caused by library dependencies that have been compiled using Java 8 or above.
If you are using the 'java' gradle plugin in a library submodule add
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
to that submodule's build.gradle file.

So I added the following to my build.gradle:

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8

Then you're presented with the following error:

* What went wrong:
A problem occurred configuring project ':com.lazybonesgames.ornamental'.
> Jack is required to support java 8 language features. Either enable Jack or remove sourceCompatibility JavaVersion.VERSION_1_8.

So I added the following to my build.gradle to enable Jack support:

    defaultConfig {
        jackOptions {
            enabled true

Which then presents the final error:

* What went wrong:
Execution failed for task ':com.lazybonesgames.ornamental:transformClassesWithPreJackPackagedLibrariesForDebug'.
> java.lang.NullPointerException (no error message)

So I'm not sure whether there is a workaround we can provide or if we need to fix something internally
Steps To Reproduce1) Place the google-serves inside %programdata%\GameMakerStudio\Cache\runtimes\runtime\android\runner\ProjectFiles
2) Run \\yoyo-file01\Projects\GMS2-Bugs\ for Android
3) See the error
TagsNo tags attached.
1.4 Found In
2.x Runtime Found In2.2.3.340
2.x Runtime Verified In



2021-08-04 11:34

Adminstrator   ~0066609

Either fixed a long time ago or no longer valid in 2.3.3. Mass-closing.