Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Extension not initialized yet, couldn't access compileSdkVersion. #4

Open
waqarv712 opened this issue Dec 19, 2019 · 6 comments

Comments

@waqarv712
Copy link

I am getting this error.

I also added

ext {
minSdkVersion = 19
compileSdkVersion = 29
targetSdkVersion = 29
buildToolsVersion = "29.0.2"
}

in the top-level gradle fle.

and in the module leve

compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 1
    versionName "1.0"
}
@akshaymahajan28
Copy link

I am also getting the same issue, any help would be much appreciated.

@moosin
Copy link

moosin commented Mar 2, 2020

@waqarv712 and @akshaymahajan28

You guys got any solutions for this problem ?

@anonrootkit
Copy link

anyone found any solution?

@anandarpit
Copy link

anyone??

@anonrootkit
Copy link

Well, I just reverted back to the older gradle version and it solved the issue.

@anandarpit
Copy link

thanks @anonrootkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants