android - ERROR: Cannot get property 'compileSdkVersion' on extra properties extension as it does not exist -
i using specialcyci/androidresidemenu third party library (github) in android project. have imported residemenu project workspace , made module dependency library project.
while build project got following error:
error:(7) problem occurred evaluating project ':residemenu'. cannot property 'compilesdkversion' on properties extension not exist
if explain more can better problem in gradle. need have extension file top-level gradle. let me explain how works:
in app-level gradle file, there should configuration that:
def config = rootproject.extensions.getbyname("ext")
you can use configurations extension file that:
android { compilesdkversion config.getat("compilesdkversion") }
but, need add extension file root of project:
dependency-versions.gradle
ext { compilesdkversion = 25 //... }
and need top-level gradle that:
def config = rootproject.extensions.getbyname("ext")
Comments
Post a Comment