Gradle breaks Android building

Just starting out? Need help? Post your questions and find answers here.
tj1010
Posts: 201
Joined: Wed May 27, 2015 1:36 pm
Contact:

Gradle breaks Android building

Post by tj1010 »

"Deprecated Gradle Features were used" breaks Android building in 2.50 B1 across machines and across connections Windows 10 X64 and JDK 8_371
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: Gradle breaks Android building

Post by Fred »

What do you mean it breaks building ? I got the warning as well but it works as expected here ? May be it works as expected in beta 2
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: Gradle breaks Android building

Post by useful »

60% abort
...
>Failed to apply plugin ...
>Android Gradle plugin requires Java 11 to run ...
...
2B or not 2B = FF
hoerbie
Posts: 100
Joined: Sun Mar 17, 2019 5:51 pm
Location: DE/BY/MUC

Re: Gradle breaks Android building

Post by hoerbie »

Actually you have to install a JDK 11, a free downloadable one for example from Microsoft or Amazon, or after registration from Oracle.
With the 2.50B2 and both free downloadable JDKs I can compile now.
I think SB should check the Java version, and the preferences dialog also should be changed to ask for a JDK 11 path.
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: Gradle breaks Android building

Post by useful »

I don't see a message from Fred about switching to Java 11.
2B or not 2B = FF
hoerbie
Posts: 100
Joined: Sun Mar 17, 2019 5:51 pm
Location: DE/BY/MUC

Re: Gradle breaks Android building

Post by hoerbie »

You are right, but Fred wrote for the 2.50b1, that it was updated to Cordova 10, and on the Cordova homepage I see:
Java Development Kit (JDK)
If you are using cordova-android 10.0.0 or greater, install the Java Development Kit (JDK) 11.
If you are using any version below cordova-android 10.0.0, install the Java Development Kit (JDK) 8.
Don‘t know if the version numbers of Cordova base and cordova-android both are now 10?
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: Gradle breaks Android building

Post by useful »

2B or not 2B = FF
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: Gradle breaks Android building

Post by Fred »

Yes, you need Java 11 now, I will write it in the requierements. Does it work for your now with Java 11 ?
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: Gradle breaks Android building

Post by useful »

At this point we need to figure out how to switch between 8 and 11 in the same system.
2B or not 2B = FF
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: Gradle breaks Android building

Post by Fred »

You can install it in any directory, and point the install path in the IDE Preference -> Compiler
Post Reply