Comments (3)
if not, please update manifest.
<manifest ...>
<application
...
android:usesCleartextTraffic="true"
...>
...
from kotlin-for-android-developers.
According to Network security configuration: "Starting with Android 9.0 (API level 28), cleartext support is disabled by default."
@SVNicolaeDaniel suggestion works. Can also look at the following for more options: https://stackoverflow.com/questions/45940861/android-8-cleartext-http-traffic-not-permitted
from kotlin-for-android-developers.
In MainActivity.kt, starting with Chapter 8, the http link gives me this error in MainActivity->onCreate:
weatherapp W/System.err: java.io.IOException: Cleartext HTTP traffic to api.openweathermap.org not permitted
I propose changing the http://api.openweather... URL to https://api.openweather...
this solved the problem
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
- Compilation error HOT 6
- RecyclerView: No adapter attached; skipping layout
- 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.