Reputation: 11
I am learning Android development, and then I found an error with Android networking uses.
I add this implementation (com.github.amitshekhariitbhu.Fast-Android-Networking:android-networking:1.0.4") dependencies in the gradle and use android networking in the create method, but android networking is still not working in my studio. I use this syntaxAndroidNetworking.initialize(getApplicationContext());
for initialize my code
Here is my complete android studio code
package com.example.dynamicappexample;
import android.os.Bundle;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
String url = "https://jsonplaceholder.typicode.com"; //GET APi
AndroidNetworking.initialize(getApplicationContext());
}
}
I am learning Android development, and then I found an error with Android networking uses.
I add this implementation (com.github.amitshekhariitbhu.Fast-Android-Networking:android-networking:1.0.4") dependencies in the gradle and use android networking in the create method, but android networking is still not working in my studio. I use this syntaxAndroidNetworking.initialize(getApplicationContext());
for initialize my code.
If you face this error in past then how you slove this error
Upvotes: 1
Views: 9