Android build problem with lime 7.3.0

Hi,

i upgraded to lime 7.3.0 today and now i have a problem building for android:

...Export\android\bin\app\src\main\java\org\libsdl\app\HIDDeviceManager.java:414: error: diamond operator is not supported in -source 1.6 mLastBluetoothDevices = new ArrayList<>(); ^ (use -source 7 or higher to enable diamond operator) 1 error

Happens on a windows system, worked before. Set Lime back to 7.2.0 and it works with a clean build. Anything i can do here?

Thx

Sounds like it needs Java 1.7 or higher, but you have Java 1.6?

Hi have:
java version “1.8.0_201”
Java™ SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot™ 64-Bit Server VM (build 25.201-b09, mixed mode)

What version of the Android SDK are you using?

We upgraded our SDL dependency, which appears to use Java 7 instead of Java 6 as the minimum. The question is which tool is building its sources

This is what i have:
android

It looks like this might be the issue:

Perhaps we need to force Java 7 in our Gradle configuration?

I just did a clean install of the Android SDK + API 26 + NDK r15c (though the NDK would be related here) and Java 8 on Linux – it works.

Does a -clean build help?

Did a clean install, too. Works fine, but i think switching from API19 to API 26 did the trick :slight_smile:

Thank you!