Changes in AndroidManifest.xml

You need to add internet permission in the android manifest and do android:usesCleartextTraffic="true".
Code for the manifest is given below for your reference-

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.askweather">
    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:usesCleartextTraffic="true"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
 

Discussion
Thank You Didu I am Mandvi from 2020 Batch I am searching you in Teams but You are not there why?

I am not certain why you couldn't find me on teams but if you have any doubts you can hmu on Gmail (janhvi.singh2019@vitbhopal.ac.in) or Linkdein.

Very well written! Great work!

1

Great job! This is really helpful. So proud of you!

1

Woo It's great work Janhvi.

1

8

4