skip to Main Content

Android Studio – Error java.lang.NullPointerException: Attempt to get length of null array at com.example.watch.PermissionActivity.onCreate(PermissionActivity.kt:42)

import android.app.Activity import android.content.Context import android.content.Intent import android.content.pm.PackageManager import android.os.Bundle import android.util.Log import androidx.core.app.ActivityCompat import androidx.fragment.app.FragmentActivity import java.util.* class PermissionActivity : FragmentActivity() { private var mPermissions: ArrayList<String?>? = null override fun onNewIntent(intent: Intent) { super.onNewIntent(intent) finish() } override fun onCreate(savedInstanceState:…

VIEW QUESTION

Android Studio – getting error: compileDebugJavaWithJavac' has completed is not supported in android studio, how to fix it?

i have recently upgraded my project to distributionUrl=https://services.gradle.org/distributions/gradle-7.4.2-all.zip and for compileSdkVersion 33 targetSdkVersion 33 ever since then i'm heaving build issues, with general building error the current after adding every flag i could think about is saying consumer-lib:compileDebugJavaWithJavac' has completed…

VIEW QUESTION
Back To Top
Search