Bom dia a todos
Eu fui tentar rodar o emulador, no primeiro momento deu certo, mas depois nunca mais rodou, tentei achar a solução na internet, mas não deu certo.
Apareceu essa mensagem de erro:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> 2 issues were found when checking AAR metadata:
1. Dependency 'androidx.core:core:1.12.0-alpha04' requires libraries and applications that
depend on it to compile against codename "UpsideDownCake" of the
Android APIs.
:app is currently compiled against android-33.
Recommended action: Use a different version of dependency 'androidx.core:core:1.12.0-alpha04',
or set compileSdkPreview to "UpsideDownCake" in your build.gradle
file if you intend to experiment with that preview SDK.
2. Dependency 'androidx.core:core-ktx:1.12.0-alpha04' requires libraries and applications that
depend on it to compile against codename "UpsideDownCake" of the
Android APIs.
:app is currently compiled against android-33.
Recommended action: Use a different version of dependency 'androidx.core:core-ktx:1.12.0-alpha04',
or set compileSdkPreview to "UpsideDownCake" in your build.gradle
file if you intend to experiment with that preview SDK.
Meu arquivo build.gradle:
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
android {
namespace 'br.com.alura.orgs'
compileSdk 33
defaultConfig {
applicationId "br.com.alura.orgs"
minSdk 24
targetSdk 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
}
dependencies {
implementation 'androidx.core:core-ktx:+'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.core:core-ktx:1.9.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
Arquivo log aparece esse erro:
2023-05-12 15:00:47,794 [2883826] SEVERE - Emulator: Pixel_3a_API_33_x86_64 - Could not read config file C:\Users\User\.android\avd\Pixel_3a_API_33_x86_64.avd\modem_simulator\modem_nvram.json: * Line 1, Column 1
2023-05-12 15:00:47,794 [2883826] SEVERE - Emulator: Pixel_3a_API_33_x86_64 - Android Studio Flamingo | 2022.2.1 Patch 1 Build #AI-222.4459.24.2221.9971841
2023-05-12 15:00:47,795 [2883827] SEVERE - Emulator: Pixel_3a_API_33_x86_64 - JDK: 17.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2023-05-12 15:00:47,795 [2883827] SEVERE - Emulator: Pixel_3a_API_33_x86_64 - OS: Windows 10
2023-05-12 15:00:47,795 [2883827] INFO - Emulator: Pixel_3a_API_33_x86_64 - Syntax error: value, object or array expected.
2023-05-12 15:00:47,795 [2883827] SEVERE - Emulator: Pixel_3a_API_33_x86_64 - Failed to obtain nvram config singleton
2023-05-12 15:00:47,796 [2883828] SEVERE - Emulator: Pixel_3a_API_33_x86_64 - Android Studio Flamingo | 2022.2.1 Patch 1 Build #AI-222.4459.24.2221.9971841
2023-05-12 15:00:47,796 [2883828] SEVERE - Emulator: Pixel_3a_API_33_x86_64 - JDK: 17.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2023-05-12 15:00:47,796 [2883828] SEVERE - Emulator: Pixel_3a_API_33_x86_64 - OS: Windows 10
Se precisar de mais detalhes, pode me falar