skip to Main Content

Android Studio – What is this Error when Debug android app?

I got this error when I tried to debug my app java.lang.NoSuchMethodError: No virtual method requestPermissions([Ljava/lang/String;I)V in class Lcom/cscodetech/townclap/activity/LoginActivity; or its super classes (declaration of 'com.zestar.myclip.activity.LoginActivity' appears in /data/app/com.zestar.myclip-1/base.apk:classes2.dex) at com.zestar.myclip.activity.LoginActivity.onCreate(LoginActivity.java:92) The logcat pointed to this line of code requestPermissions(new…

VIEW QUESTION

Fix app keeps stopping made with android studio

I'm new in the android development field. Last night I made a simple calculator from a youtube tutorial and fortunately I've successfully made it. Here is the code main.xml:- <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="top|center"> <ImageView android:layout_height="120dp"…

VIEW QUESTION
Back To Top
Search