Android Development with Android Studio - Recyclerview is not working

Asked

Viewed 109 times

-1

I’m trying to get into this world of Android development, using Android Studio. And right at the beginning I already face a simple problem for an experienced programmer who uses Android Studio but relatively difficult for those who are starting.

The problem is this: My layout preview does not show Recyclerview, hence my app, when it comes to testing it, even open where I’m trying to use it. I’ve tried the course recommendations I’m following, but nothing works.

Here is the build.Radle(Module:app), where I put the dependencies:

Imagem do build.gradle(Module:app)

How the preview looks, in the right corner of the screen:

imagem2

  • First, avoid using the same libraries with different versions. Second, open those blue exclamations in the upper right corner of the screen that will tell you what’s missing.

  • Thanks for the tips, Ascension.

  • See this also Matthew: https://pt.meta.stackoverflow.com/questions/5149/devemos-corta-a-mania-das-questions-com-imagem-do-c%C3%B3digo-ao-Inv%C3%A9s-do-c%C3%B3digo

  • Already solved? If not, send your Class to the staff to help you... I noticed that in your Recyclerview you don’t have the code below, see if it’s necessary; ... tools:listitem="@layout/seu_item">

1 answer

0


Hello, Matthew!

Confirm that your Android Studio is up to date. On Help > Check for Updates...

Modify the implementation of the components to:

implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'

And... make sure the support:appcompat don’t get duplicated.

  • Android Studio whenever updates a little problem arises, but I was able to solve it by updating it. Thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.