Я создаю приложение Android, которое будет извлекать данные JSON из Moviedb api и отображать данные в виде сетки приложения. Я использую библиотеку Volley для получения данных. Однако у меня возникла ошибка в моем Logcat, и мое приложение разбилось.
Мое сообщение logcat:
2020-07-10 21:47:24.826 15116-15116/? E/Zygote: isWhitelistProcess - Process is Whitelisted
2020-07-10 21:47:24.828 15116-15116/? E/Zygote: accessInfo : 1
2020-07-10 21:47:24.844 15116-15116/? I/.example.movie: Late-enabling -Xcheck:jni
2020-07-10 21:47:24.918 15116-15116/? I/.example.movie: report jit thread pid = 15121
2020-07-10 21:47:25.831 15116-15116/com.example.movies W/.example.movie: Accessing hidden method Landroid/graphics/drawable/Drawable;->getOpticalInsets()Landroid/graphics/Insets; (light greylist, linking)
2020-07-10 21:47:25.831 15116-15116/com.example.movies W/.example.movie: Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
2020-07-10 21:47:25.831 15116-15116/com.example.movies W/.example.movie: Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
2020-07-10 21:47:25.831 15116-15116/com.example.movies W/.example.movie: Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
2020-07-10 21:47:25.832 15116-15116/com.example.movies W/.example.movie: Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
2020-07-10 21:47:25.900 15116-15116/com.example.movies I/DecorView: createDecorCaptionView >> DecorView@4f55a1a[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
2020-07-10 21:47:26.134 15116-15116/com.example.movies W/.example.movie: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
2020-07-10 21:47:26.140 15116-15116/com.example.movies W/.example.movie: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
2020-07-10 21:47:26.177 15116-15116/com.example.movies W/.example.movie: Accessing hidden method Landroid/widget/TextView;->getTextDirectionHeuristic()Landroid/text/TextDirectionHeuristic; (light greylist, linking)
2020-07-10 21:47:26.413 15116-15116/com.example.movies D/OpenGLRenderer: Skia GL Pipeline
2020-07-10 21:47:26.421 15116-15116/com.example.movies D/EmergencyMode: [EmergencyManager] android createPackageContext successful
2020-07-10 21:47:26.456 15116-15116/com.example.movies D/InputTransport: Input channel constructed: fd=64
2020-07-10 21:47:26.457 15116-15116/com.example.movies D/ViewRootImpl@4d255ed[MainActivity]: setView = DecorView@4f55a1a[MainActivity] TM=true MM=false
2020-07-10 21:47:26.538 15116-15116/com.example.movies D/ViewRootImpl@4d255ed[MainActivity]: Relayout returned: old=[0,0][720,1480] new=[0,0][720,1480] result=0x7 surface={true 3891679232} changed=true
2020-07-10 21:47:26.540 15116-15166/com.example.movies I/Adreno: QUALCOMM build : 7dbb41d, Iebf953a4a5
Build Date : 12/21/18
OpenGL ES Shader Compiler Version: EV031.25.03.02
Local Branch : mybranche905414d-0929-f1b3-8cb2-5cb90179c3d8
Remote Branch : quic/gfx-adreno.lnx.1.0.r52-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
2020-07-10 21:47:26.541 15116-15166/com.example.movies I/Adreno: Build Config : S L 6.0.7 AArch32
2020-07-10 21:47:26.550 15116-15166/com.example.movies I/Adreno: PFP: 0x005ff110, ME: 0x005ff066
2020-07-10 21:47:26.558 15116-15116/com.example.movies E/RecyclerView: No adapter attached; skipping layout
2020-07-10 21:47:26.563 15116-15166/com.example.movies I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2020-07-10 21:47:26.563 15116-15166/com.example.movies I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-07-10 21:47:26.564 15116-15166/com.example.movies I/OpenGLRenderer: Initialized EGL, version 1.4
2020-07-10 21:47:26.564 15116-15166/com.example.movies D/OpenGLRenderer: Swap behavior 2
2020-07-10 21:47:26.583 15116-15166/com.example.movies D/OpenGLRenderer: eglCreateWindowSurface = 0xe01dc9a0, 0xe7f65008
2020-07-10 21:47:26.648 15116-15116/com.example.movies D/MainActivity: Number of counts280
2020-07-10 21:47:26.649 15116-15116/com.example.movies D/MainActivity: Movie TitleMaster and Commander: The Far Side of the World
2020-07-10 21:47:26.649 15116-15116/com.example.movies D/MainActivity: Number of counts143
2020-07-10 21:47:26.649 15116-15116/com.example.movies D/MainActivity: Movie TitleThe Outpost
2020-07-10 21:47:26.649 15116-15116/com.example.movies D/MainActivity: Number of counts131
2020-07-10 21:47:26.650 15116-15116/com.example.movies D/MainActivity: Movie TitleHamilton
2020-07-10 21:47:26.650 15116-15116/com.example.movies D/MainActivity: Number of counts107
2020-07-10 21:47:26.650 15116-15116/com.example.movies D/MainActivity: Movie TitleArtemis Fowl
2020-07-10 21:47:26.650 15116-15116/com.example.movies D/MainActivity: Number of counts107
2020-07-10 21:47:26.650 15116-15116/com.example.movies D/MainActivity: Movie TitleAd Astra
2020-07-10 21:47:26.650 15116-15116/com.example.movies D/MainActivity: Number of counts104
2020-07-10 21:47:26.650 15116-15116/com.example.movies D/MainActivity: Movie TitleDesperados
2020-07-10 21:47:26.651 15116-15116/com.example.movies D/MainActivity: Number of counts92
2020-07-10 21:47:26.651 15116-15116/com.example.movies D/MainActivity: Movie TitleAng Pangarap Kong Holdap
2020-07-10 21:47:26.651 15116-15116/com.example.movies D/MainActivity: Number of counts90
2020-07-10 21:47:26.651 15116-15116/com.example.movies D/MainActivity: Movie TitleТайна Печати дракона
2020-07-10 21:47:26.651 15116-15116/com.example.movies D/MainActivity: Number of counts84
2020-07-10 21:47:26.651 15116-15116/com.example.movies D/MainActivity: Movie TitleSonic the Hedgehog
2020-07-10 21:47:26.651 15116-15116/com.example.movies D/MainActivity: Number of counts82
2020-07-10 21:47:26.652 15116-15116/com.example.movies D/MainActivity: Movie TitleHarry Potter and the Philosopher's Stone
2020-07-10 21:47:26.652 15116-15116/com.example.movies D/MainActivity: Number of counts81
2020-07-10 21:47:26.652 15116-15116/com.example.movies D/MainActivity: Movie TitleJoker
2020-07-10 21:47:26.653 15116-15116/com.example.movies D/MainActivity: Number of counts80
2020-07-10 21:47:26.653 15116-15116/com.example.movies D/MainActivity: Movie TitleAvengers: Infinity War
2020-07-10 21:47:26.653 15116-15116/com.example.movies D/MainActivity: Number of counts79
2020-07-10 21:47:26.653 15116-15116/com.example.movies D/MainActivity: Movie TitleBirds of Prey (and the Fantabulous Emancipation of One Harley Quinn)
2020-07-10 21:47:26.653 15116-15116/com.example.movies D/MainActivity: Number of counts75
2020-07-10 21:47:26.654 15116-15116/com.example.movies D/MainActivity: Movie TitleThe Bad Lieutenant: Port of Call - New Orleans
2020-07-10 21:47:26.654 15116-15116/com.example.movies D/MainActivity: Number of counts73
2020-07-10 21:47:26.654 15116-15116/com.example.movies D/MainActivity: Movie TitleThe Hobbit: The Battle of the Five Armies
2020-07-10 21:47:26.654 15116-15116/com.example.movies D/MainActivity: Number of counts71
2020-07-10 21:47:26.654 15116-15116/com.example.movies D/MainActivity: Movie TitleInception
2020-07-10 21:47:26.654 15116-15116/com.example.movies D/MainActivity: Number of counts71
2020-07-10 21:47:26.655 15116-15116/com.example.movies D/MainActivity: Movie TitleInterstellar
2020-07-10 21:47:26.655 15116-15116/com.example.movies D/MainActivity: Number of counts70
2020-07-10 21:47:26.655 15116-15116/com.example.movies D/MainActivity: Movie TitleFrozen II
2020-07-10 21:47:26.655 15116-15116/com.example.movies D/MainActivity: Number of counts70
2020-07-10 21:47:26.655 15116-15116/com.example.movies D/MainActivity: Movie Title기생충
2020-07-10 21:47:26.656 15116-15116/com.example.movies D/MainActivity: Number of counts69
2020-07-10 21:47:26.656 15116-15116/com.example.movies D/MainActivity: Movie TitleScoob!
2020-07-10 21:47:26.663 15116-15116/com.example.movies D/ViewRootImpl@4d255ed[MainActivity]: MSG_RESIZED: frame=[0,0][720,1480] ci=[0,42][0,84] vi=[0,42][0,84] or=1
2020-07-10 21:47:26.664 15116-15116/com.example.movies D/ViewRootImpl@4d255ed[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
2020-07-10 21:47:26.665 15116-15116/com.example.movies D/InputMethodManager: prepareNavigationBarInfo() DecorView@4f55a1a[MainActivity]
2020-07-10 21:47:26.666 15116-15116/com.example.movies D/InputMethodManager: getNavigationBarColor() -855310
2020-07-10 21:47:26.670 15116-15116/com.example.movies D/InputMethodManager: prepareNavigationBarInfo() DecorView@4f55a1a[MainActivity]
2020-07-10 21:47:26.671 15116-15116/com.example.movies D/InputMethodManager: getNavigationBarColor() -855310
2020-07-10 21:47:26.671 15116-15116/com.example.movies V/InputMethodManager: Starting input: tba=com.example.movies ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
2020-07-10 21:47:26.672 15116-15116/com.example.movies D/InputMethodManager: startInputInner - Id : 0
2020-07-10 21:47:26.672 15116-15116/com.example.movies I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
2020-07-10 21:47:26.681 15116-15141/com.example.movies D/InputTransport: Input channel constructed: fd=69
2020-07-10 21:47:26.752 15116-15116/com.example.movies W/.example.movie: Accessing hidden method Landroid/graphics/FontFamily;-><init>()V (light greylist, reflection)
2020-07-10 21:47:26.752 15116-15116/com.example.movies W/.example.movie: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromAssetManager(Landroid/content/res/AssetManager;Ljava/lang/String;IZIII[Landroid/graphics/fonts/FontVariationAxis;)Z (light greylist, reflection)
2020-07-10 21:47:26.752 15116-15116/com.example.movies W/.example.movie: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromBuffer(Ljava/nio/ByteBuffer;I[Landroid/graphics/fonts/FontVariationAxis;II)Z (light greylist, reflection)
2020-07-10 21:47:26.752 15116-15116/com.example.movies W/.example.movie: Accessing hidden method Landroid/graphics/FontFamily;->freeze()Z (light greylist, reflection)
2020-07-10 21:47:26.752 15116-15116/com.example.movies W/.example.movie: Accessing hidden method Landroid/graphics/FontFamily;->abortCreation()V (light greylist, reflection)
2020-07-10 21:47:26.753 15116-15116/com.example.movies W/.example.movie: Accessing hidden method Landroid/graphics/Typeface;->createFromFamiliesWithDefault([Landroid/graphics/FontFamily;Ljava/lang/String;II)Landroid/graphics/Typeface; (light greylist, reflection)
2020-07-10 21:47:26.783 15116-15116/com.example.movies E/.example.movie: Invalid ID 0x0000073a.
2020-07-10 21:47:26.784 15116-15116/com.example.movies D/AndroidRuntime: Shutting down VM
2020-07-10 21:47:26.804 15116-15116/com.example.movies E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.movies, PID: 15116
android.content.res.Resources$NotFoundException: String resource ID #0x73a
at android.content.res.Resources.getText(Resources.java:363)
at android.widget.TextView.setText(TextView.java:6485)
at com.example.movies.MovieAdapter.onBindViewHolder(MovieAdapter.java:44)
at com.example.movies.MovieAdapter.onBindViewHolder(MovieAdapter.java:17)
at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:7065)
at androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:7107)
at androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:6012)
at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6279)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6118)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6114)
at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2303)
at androidx.recyclerview.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:561)
at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1587)
at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:665)
at androidx.recyclerview.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:4134)
at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:3851)
at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4404)
at android.view.View.layout(View.java:22406)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1083)
at android.view.View.layout(View.java:22406)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:22406)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at androidx.appcompat.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:446)
at android.view.View.layout(View.java:22406)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:22406)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
at android.view.View.layout(View.java:22406)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:1075)
at android.view.View.layout(View.java:22406)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3394)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2863)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1911)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8526)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
at android.view.Choreographer.doCallbacks(Choreographer.java:761)
at android.view.Choreographer.doFrame(Choreographer.java:696)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
2020-07-10 21:47:26.805 15116-15116/com.example.movies E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7078)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)
2020-07-10 21:47:26.893 15116-15116/com.example.movies I/Process: Sending signal. PID: 15116 SIG: 9
Вот мой код:
MainActivity. java:
public class MainActivity extends AppCompatActivity {
private static final String TAG = "MainActivity";
private RecyclerView mRecyclerview;
private MovieAdapter mMovieAdapter;
private ArrayList<Movieitem> mMovieList;
private RequestQueue mRequestQueue;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mRecyclerview = (RecyclerView) findViewById(R.id.recycler_view);
mRecyclerview.setHasFixedSize(true);
mRecyclerview.setLayoutManager(new GridLayoutManager(MainActivity.this,2));
mMovieList=new ArrayList<>();
//mRecyclerview.setAdapter(mMovieAdapter);
mRequestQueue= Volley.newRequestQueue(this);
ParseJSON();
}
public void ParseJSON()
{
String url="https://api.themoviedb.org/3/movie/popular?api_key=my_api_key";
JsonObjectRequest request= new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
try {
JSONArray jsonArray = response.getJSONArray("results");
for(int i=0;i<jsonArray.length();i++)
{
JSONObject result=jsonArray.getJSONObject(i);
int popularity = result.getInt("popularity");
Log.d(TAG,"Number of counts"+String.valueOf(popularity));
int votecount=result.getInt("vote_count");
String title = result.getString("original_title");
Log.d(TAG,"Movie Title"+title);
String url=result.getString("backdrop_path");
mMovieList.add(new Movieitem(title,url,popularity,votecount));
}
mMovieAdapter =new MovieAdapter(MainActivity.this,mMovieList);
mRecyclerview.setAdapter(mMovieAdapter);
} catch (JSONException e) {
Log.d(TAG,"Error in main1");
e.printStackTrace();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Log.d(TAG,"Error in main2");
error.printStackTrace();
}
});
//mRecyclerview.setAdapter(mMovieAdapter);
mRequestQueue.add(request);
}
}
MovieAdapter. java:
public class MovieAdapter extends RecyclerView.Adapter<MovieAdapter.MovieViewHolder> {
Context mContext;
private ArrayList<Movieitem>mMovieList;
public MovieAdapter(Context context,ArrayList<Movieitem>movielist)
{
mContext=context;
mMovieList=movielist;
}
@NonNull
@Override
public MovieViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View v= LayoutInflater.from(mContext).inflate(R.layout.example_item,parent,false);
return new MovieViewHolder(v);
}
@Override
public void onBindViewHolder(@NonNull MovieViewHolder holder, int position) {
Movieitem currItem=mMovieList.get(position);
String Url=currItem.getmImageUrl();
String Title=currItem.getmTitle();
int votecount=currItem.getmVotecount();
int popularity=currItem.getmPopularity();
holder.mVotecount.setText(votecount);
holder.mPopularity.setText(popularity);
holder.mtitle.setText(Title);
Picasso.get().load(Url).into(holder.mImageView);
}
@Override
public int getItemCount() {
return mMovieList.size();
}
public class MovieViewHolder extends RecyclerView.ViewHolder
{
ImageView mImageView;
TextView mtitle;
TextView mPopularity;
TextView mVotecount;
public MovieViewHolder(@NonNull View itemView) {
super(itemView);
mImageView=itemView.findViewById(R.id.backdrop_path);
mtitle=itemView.findViewById(R.id.title);
mPopularity=itemView.findViewById(R.id.popularity);
mVotecount=itemView.findViewById(R.id.vote_count);
}
}
}
Movieitem. java
public class Movieitem {
private String mImageUrl;
private int mVotecount;
private int mPopularity;
private String mTitle;
public Movieitem(String title,String url,int popularity,int votecount)
{
mImageUrl=url;
mTitle=title;
mPopularity=popularity;
mVotecount=votecount;
}
public String getmImageUrl()
{
return mImageUrl;
}
public String getmTitle()
{
return mTitle;
}
public int getmVotecount()
{
return mVotecount;
}
public int getmPopularity()
{
return mPopularity;
}
}
activity_main. xml:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/recycler_view"
>
</androidx.recyclerview.widget.RecyclerView>
</RelativeLayout>
example_item. xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@android:color/holo_blue_dark"
app:cardCornerRadius="8dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="200dp"
android:id="@+id/backdrop_path"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="22sp"
android:textStyle="italic"
android:gravity="center"
android:layout_marginTop="5dp"
android:text="create name"
android:textColor="@android:color/black"
android:id="@+id/title"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="22sp"
android:textStyle="italic"
android:gravity="center"
android:layout_marginTop="5dp"
android:text="ID"
android:textColor="@android:color/black"
android:id="@+id/vote_count"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="22sp"
android:textStyle="italic"
android:gravity="center"
android:layout_marginTop="5dp"
android:text="create name"
android:textColor="@android:color/black"
android:id="@+id/popularity"/>
</LinearLayout>
зависимости:
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.android.volley:volley:1.1.1'
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.recyclerview:recyclerview:1.1.0"
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
// For control over item selection of both touch and mouse driven selection
implementation "androidx.recyclerview:recyclerview-selection:1.1.0-rc01"
implementation 'com.squareup.picasso:picasso:2.71828'
После анализа я обнаружил следующие ошибки:
2020 -07-10 21: 47: 26.558 15116-15116 / com.example.movies E / RecyclerView: адаптер не подключен; пропуская макет
и после этой строки
2020-07-10 21: 47: 26.783 15116-15116 / com.example.movies E / .example.mov ie: Invalid ID 0x0000073a .......
Я выполнил все необходимые разрешения в моем файле манифеста. Я просто пытаюсь научиться использовать залп, и это мой первый проект по волейболу. Пожалуйста, помогите .. Спасибо.