I just downloaded the project materials and opened it in Android Studio 3.5 on macOS.
Even though this article was published recently, all of its dependencies are very old versions - and not using any of the androidx libraries. The com.android.support.* libraries are deprecated and Android Studio will not build the project. AS shows this error message:
“Compilation is not supported for following modules: app, Snowy-starter copy. Unfortunately you can’t have non-Gradle Java modules and Android-Gradle modules in one project.”
What should I do to get this project to work in AS 3.5?
Thanks for the comments @mstralka and @richgabrielli! Sorry to hear you ran into trouble with the tutorial project.
Despite that error message, both the starter project and final project build and run successfully in Android Studio 3.5.
That error message re: “Unsupported Modules Detected” is an Android Studio project issue that does not affect the project being built, so you can ignore it. You can make it go away by re-downloading the tutorial zip files, then deleting the .idea sub-folder of the starter and/or final project before opening them in Android Studio 3.5.
With respect to AndroidX, I totally agree that it’s time to migrate to it based on Google’s recommendation, and most of our tutorials are using it now. But the support library 28.0.0 is still supported. You can switch the Snowy app to AndroidX by running the the “Migrate to AndroidX…” refactoring on the project in Android Studio 3.5; I did this and it worked like a charm.
Thanks again, and let us know if you have any further comments or thoughts!
Thanks for raising the issue @mstralka and @richgabrielli ! macsimus (Joe) is right the projects build and run successfully in Android Studio 3.5 . But still I have updated them with latest versions of dependencies and have migrated the projects to AndroidX.
Thanks again, do let us know if you run in any other issues.
Hey @richgabrielli I have just uploaded the updated project with migration to androidx. The error logs in the image seems due to the same . Please download the recent materials from the tutorial it should work.
Hi Mr @amanjeetsingh
The First, I should say tank you for good article.
I try to write this sample like your sample but I have problem my sample works just one time.
That my mean my sample shows just one time picture when I click Tab or page between pages dont shows any picture and ProgressBar just shows.
Do you help me? what is my problem?