App center Error: /Users/runner/work/1/s/android/gradlew failed with return code: 1
Asked Answered
A

2

6

I'm using react native to build my apps and thought to give Microsoft app center a chance.

The main issue I have is that I cannot finish the build.

This should be a non-production build that will be tested by the QA team.

This is the error I get:

Aweless answered 5/7, 2021 at 11:40 Comment(1)
A
2

I have found the issue.

I was the Gradle version, there is no 7.3**

The latest version is 7.1.1 so when I changed the URL to gradle-7.1.1-all.zip It worked.

Aweless answered 5/7, 2021 at 16:43 Comment(0)
J
1

Seems like a java compatibility issue with your project gradle!

Open your app center build config page > enable the Environment variables

Set JAVA_HOME as $(JAVA_HOME_11_X64) and click on save and build.

enter image description here

Jaws answered 14/3, 2023 at 16:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.