daimajia / AndroidSwipeLayout

The Most Powerful Swipe Layout!
MIT License
12.38k stars 2.67k forks source link

How do I import AndroidSwipeLayout as a library? #543

Open xyang5987 opened 4 years ago

xyang5987 commented 4 years ago

When I tried to import AndroidSwipeLayout to a project in Android Studio, I got the following message

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

Does anyone have any idea?

AyusPokhriyal-18 commented 4 years ago

The answer is pretty simple: In your 'defaultConfig' section put a Version name in it. eg- versionName "1.2.3" After this, if you still getting error. provide a 'project.VERSION_CODE' under the version name. eg- versionCode Integer.parseInt(project.VERSION_CODE)