Giter Site home page Giter Site logo

Comments (6)

antoniolg avatar antoniolg commented on June 16, 2024

It comes from the forecastList that is passed to with:

data class ForecastList(val id: Long, val city: String, val country: String,

from kotlin-for-android-developers.

LiviuSo avatar LiviuSo commented on June 16, 2024

Got it! My bad, sorry! Many thanks!

from kotlin-for-android-developers.

Mnemoth42 avatar Mnemoth42 commented on June 16, 2024

I'm in Android Studio 3.01... the program can't seem to find RecyclerView

Even copying and pasting the code from the git returns that RecyclerView cannot be found, and if you type import.android.support.v7.widget.RecyclerView, it doesn't autocomplete, nothing even close under widget... was it removed by chance?
Oddly, adding a RecyclerView to activity_main.xml works fine...

from kotlin-for-android-developers.

Mnemoth42 avatar Mnemoth42 commented on June 16, 2024

Ok... anybody who gets this problem, add the following to your build gradle (the app one):
implementation 'com.android.support:recyclerview-v7:26.1.0'
(You might have to change the version to match your current sdk). Once I did that, it worked. Go figure.

from kotlin-for-android-developers.

antoniolg avatar antoniolg commented on June 16, 2024

Yeah, to use the recyclerview you need to add that support library. It's explained at the beginning of chapter 5:

image

Was that your problem, or did you have to add also that line to make it work? In the past I've found myself having issues to get that library detected, solved by doing several project cleans.

from kotlin-for-android-developers.

eliomaroun avatar eliomaroun commented on June 16, 2024

/com.example.user.weatherkotlin E/RecyclerView: No adapter attached; skipping layout
I followed your book step by step till chapter 15, and I tried to run the app on my Nexus 5.
I got an empty screen.
Can you help
Thanks in advance!!

from kotlin-for-android-developers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.