Java 11 setup for Android build

Shashi 1 Reputation point
2021-09-26T16:43:00.423+00:00
  • What went wrong:
    A problem occurred evaluating project ':app'.

    Failed to apply plugin 'com.android.internal.application'.

    Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.

    You can try some of the following options:
    • changing the IDE settings.
    • changing the JAVA_HOME environment variable.
    • changing org.gradle.java.home in gradle.properties.

I tried to build the Android project in App Center, project uses latest gradle 7.0.1 with Java 11 compile options, while building the project looks like app centre machine does not have to Java 11, I see above error with build failure.

Is there any config option in build setting?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,946 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,261 Reputation points Microsoft Vendor
    2021-09-27T01:54:31.83+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    I find this issue was reported in the github, here is a solution about this issue:https://github.com/microsoft/appcenter/issues/2067#issuecomment-888853402. If you have issue when you used AppCenter, you can get a free support in the AppCenter directly like this way https://learn.microsoft.com/en-us/appcenter/help#accessing-app-center-free-support

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more