Ask Your Question
4

Why did the Gradle sync fail, with the reason being that compileSdkVersion was not mentioned?

asked 2022-07-14 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-11-15 21:00:00 +0000

djk gravatar image

The Gradle sync failed because the compileSdkVersion was not mentioned in the project's build.gradle file. This is necessary because the compileSdkVersion specifies the maximum version of the Android SDK that the app can use, and it needs to be specified in order for Gradle to know which SDK version to use when building the app. Without this information, Gradle is unable to resolve dependencies and compile the code.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-07-14 11:00:00 +0000

Seen: 11 times

Last updated: Nov 15 '21