Closed MathiasGilson closed 6 years ago
Changing the SDK target version from 27 to 28 resolved this issue
I changed the app build.gradle file like this
apply plugin: 'com.android.application'
android {
compileSdkVersion 28 // <== Change this
defaultConfig {
applicationId "com.google.ar.core.examples.java.helloar"
minSdkVersion 24
targetSdkVersion 28 // <== Change this
versionCode 1
versionName "1.0"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation 'com.google.ar:core:1.4.0'
implementation 'de.javagl:obj:0.2.1'
implementation 'com.android.support:appcompat-v7:28.0.0' // <== Change this
implementation 'com.android.support:design:28.0.0' // <== Change this
}
I had to update the emulator API to 28 too and enable VirtualScene on the back cam of the emulator
The version of AndroidEmulator doesn't offer the VirtualScene option so you have to enable it manually by adding hw.camera.back=virtualscene
to your config.ini
file in ~/.android/avd/<Name of your simulated device>/config.ini
Interesting, glad you were able to work that out.
Android Studio 3.2 fixed the error, you have the virtualscene option on the emulator config window now
Sample App HelloAR keeps crashing on the emulator configured with Pixel 2 API 27, Android 8.1 x86 with 4GB of RAM
I'm running MacOS High Sierra 10.13.6 and Android Studio 3.1.4
Android Emulator is 27.3.10
I got the following Logcat
Any idea ?
Thanks