osama
osama

Reputation: 21

Could not get unknown property 'ANDROID_SUPPORT_VERSION' for project ':demo' of type org.gradle.api.Project

I am trying to use this library : https://github.com/telly/MrVector in my android studio project. So what I did is to import it as a module in my project and when i tried to sync project this error appeared

Could not get unknown property 'ANDROID_SUPPORT_VERSION' for project ':demo' of type org.gradle.api.Project.

Here is where the problem occurs in the Gradle file:

dependencies {
  compile project(':library')
  compile "com.android.support:appcompat-v7:${project.ANDROID_SUPPORT_VERSION}@aar"
}

Upvotes: 1

Views: 1366

Answers (1)

ישו אוהב אותך
ישו אוהב אותך

Reputation: 29824

Could not get unknown property 'ANDROID_SUPPORT_VERSION' for project ':demo' of type org.gradle.api.Project.

It's because your project didn't have the ANDROID_SUPPORT_VERSION property in your gradle.properties which is not getting imported to your project. you need to add the property.

Here is the MrVector gradle.properties that you probably need to add to your project:

VERSION_NAME=0.2.0
VERSION_CODE=2
GROUP=com.telly

POM_NAME=Mr. Vector Library
POM_ARTIFACT_ID=mrvector
POM_PACKAGING=aar

POM_DESCRIPTION=Mr. Vector (VectorDrawableCompat): A 7+ backport of VectorDrawable
POM_URL=https://github.com/telly/MrVector
POM_SCM_URL=https://github.com/telly/MrVector
POM_SCM_CONNECTION=scm:[email protected]:telly/MrVector.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:telly/MrVector.git
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=eveliotc
POM_DEVELOPER_NAME=Evelio Tarazona Caceres

ANDROID_BUILD_MIN_SDK_VERSION=7
ANDROID_BUILD_TARGET_SDK_VERSION=21
ANDROID_BUILD_SDK_VERSION=21
ANDROID_BUILD_TOOLS_VERSION=21.1.2

ANDROID_SUPPORT_VERSION=21.0.3

Upvotes: 1

Related Questions