stepstone-tech / android-material-stepper

This library allows to use Material steppers inside Android applications.
Apache License 2.0
1.78k stars 261 forks source link

How to include this project in an existing android project in Android Studio #159

Closed vega25 closed 7 years ago

vega25 commented 7 years ago

Make sure these boxes are checked before submitting your issue - thank you!

zawadz88 commented 7 years ago

Hi @vega25, You should add it to your project's Gradle dependencies as described here: https://github.com/stepstone-tech/android-material-stepper/blob/master/README.md#getting-started

vega25 commented 7 years ago

I have downloaded the Zip- Unzipped it and added as a new module to my project. Tried the method described also.

I am getting Error:(2, 0) Plugin with id 'kotlin-android' not found. File:F:\Work\AndroidProjs\DeviceChk\material-stepper\build.gradle">

Could you please guide me where I am wrong. Thanks for the help.

zawadz88 commented 7 years ago

@vega25, Is there any specific reason why you cannot use as a Gradle dependency instead? If you want to use it as a submodule in your project directly by copying it into your project you'll need to update build.gradle file in material-stepper dependency to actually work with your project. If you want to use the library as it is without any modifications then adding it as a Gradle dependency is the preferred way.

vega25 commented 7 years ago

Thanks for the help. All the samples are in kotlin language, are there any samples which are not in kotlin language?

zawadz88 commented 7 years ago

All the samples were migrated to Kotlin recently, but you can see the older version written in Java here: https://github.com/stepstone-tech/android-material-stepper/tree/v3.2.0/sample/src/main/java/com/stepstone/stepper/sample