android / views-widgets-samples

Multiple samples showing the best practices in views-widgets on Android.
Apache License 2.0
5.05k stars 3.01k forks source link

no longer builds in Android Studio, despite being a default example #20

Open joker-b opened 7 years ago

joker-b commented 7 years ago

version of components are too out of date

gtestault commented 6 years ago

replace dependencies with compile ("com.android.support:support-v4:22.2.0")

compile ("com.android.support:appcompat-v7:22.2.0")

compile ("com.android.support:support-annotations:22.2.0")

compile ("com.android.support:recyclerview-v7:22.2.0")

compile ("com.android.support:design:22.2.0")

But srsly i don't get why they do not update the recycler sample.

EDIT: im sure you don't even need all of those

learnitmyway commented 6 years ago

Alternatively, you could bump up the minSdkVersion to 14.

JigokunoOusama commented 6 years ago

I have yet to import a project into Android Studio that functions as it should. The only working examples I have were developed by my school. Even those I had to edit so that they would build and launch properly.

Obviously this is an important view in Android, so the lack of attention placed on exemplifying it is underwhelming.

Also, I finally got the program to build and run by lowering the minSdkVersion to 7, rolling back the dependencies in src/build.gradle to 24.0.0.0, and replacing the 'compile' keyword usages with 'implementation.'