Chương trình android báo lỗi không chạy được

Chương trình nó báo lỗi như này thì sửa như nào vậy ạ, anh chị giúp em với huhu, em xóa đi tải lại SDK 31 platform mà vẫn bị báo lỗi như vậy

Hy vọng giúp dc em.

The same problem was encountered and solved with a few line changes.

Check the Project code panel, and go to Gradle Scripts --> build.gradle file,

  1. Change 3 places: compileSdkVersion, buildToolsVersion, targetSdkVersion from 31 to 30
  2. You’ll notice a lightbulb hit occurring on modified lines, click and choose sync [to version 30]. The Android Studio will automatically download BuildTool V30 and change project settings.

Now run the app. It works for me

1 Like

Cảm ơn anh , e sửa được rồi ạ :smiling_face_with_three_hearts:

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?