Код: Выделить всё
Execution failed for task ':app:mergeExtDexDebug'.Код: Выделить всё
java.lang.NullPointerException: Cannot invoke "String.length()" because "
" is nullВот трассировка стека ошибки:
Код: Выделить всё
Task :app:mergeExtDexDebug FAILED
AGPBI: {"kind":"error","text":"java.lang.NullPointerException","sources":
Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform appcompat-resources-1.7.0.aar (androidx.appcompat:appcompat-
> Execution failed for DexingNoClasspathTransform:
> Error while dexing.
> Failed to transform appcompat-1.7.0.aar (androidx.appcompat:appcompat:1.7.0) to match
> Error while dexing.
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:mergeExtDexDebug'.
Caused by: java.lang.NullPointerException
Уровень приложения:
Код: Выделить всё
plugins {
id 'com.android.application'
}
android {
namespace 'com.example.jurisscan'
compileSdk 34
defaultConfig {
applicationId "com.example.jurisscan"
minSdk 24
targetSdk 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard- rules.pro'
}
}
buildFeatures {
viewBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
Код: Выделить всё
// Top-level build file where you can add configuration common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.0.0' apply false
id 'com.android.library' version '8.0.0' apply false
}
Код: Выделить всё
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "JurisScan"
include ':app'
Я уже некоторое время застрял в этой проблеме, если у кого-то есть мысли о чем-то, что могло бы помочь, был бы очень признателен.
Подробнее здесь: https://stackoverflow.com/questions/785 ... ll-pointer
Мобильная версия