Comments (6)
It comes from the forecastList
that is passed to with
:
from kotlin-for-android-developers.
Got it! My bad, sorry! Many thanks!
from kotlin-for-android-developers.
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.
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.
Yeah, to use the recyclerview
you need to add that support library. It's explained at the beginning of chapter 5:
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.
/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)
- Book Errata: 7.2 Start using Anko HOT 5
- [MINOR] Book Errata: 10.3 Drawing the data in the UI HOT 1
- zip code vs city id in chapter-19 branch HOT 3
- Book Errata: 13.3 Extending the language HOT 1
- Database Error HOT 2
- errors importing in androdiStudio3 preview2 HOT 2
- failed to run from master branch HOT 1
- Botttom of page 19 HOT 1
- Page 43 URL Error HOT 1
- Build Failed HOT 5
- Chapter 8 Code example doesn't run as described HOT 2
- ServerClasses, gson and null properties HOT 1
- RecyclerView: No adapter attached; skipping layout
- Change http links to https-- Android error HOT 3
- LayoutContainer
- Failed to resolve: espresso-contrib
- crash:null check HOT 2
- Anko is a deprecated library
- Kotlin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotlin-for-android-developers.