Java 我的ARcore应用程序在我从android studio启动后立即启动并崩溃
在我将我的应用程序从android studio发布到OP 6之后,该应用程序请求许可,同时崩溃 我使用Sceneform QuickStart并遵循每个步骤,但无法使其运行 我以前已经在此手机上使用AR应用程序 我已经尝试从一开始就重新启动,但我遇到了同样的问题 我的舱单:Java 我的ARcore应用程序在我从android studio启动后立即启动并崩溃,java,android,android-studio,arcore,Java,Android,Android Studio,Arcore,在我将我的应用程序从android studio发布到OP 6之后,该应用程序请求许可,同时崩溃 我使用Sceneform QuickStart并遵循每个步骤,但无法使其运行 我以前已经在此手机上使用AR应用程序 我已经尝试从一开始就重新启动,但我遇到了同样的问题 我的舱单: 我的gradle(应用程序)文件 这是我的mainActivity.java 公共类MainActivity扩展了AppCompatActivity{ 私有静态最终字符串TAG=“MyActivity”; 私有静态最
我的gradle(应用程序)文件
这是我的mainActivity.java
公共类MainActivity扩展了AppCompatActivity{
私有静态最终字符串TAG=“MyActivity”;
私有静态最终double MIN_OPENGL_版本=3.0;
ArFragment-ArFragment;
模型可渲染地球可渲染;
@凌驾
@SuppressWarnings({“Androidapchecker”、“FutureReturnValueIgnored”})
创建时受保护的void(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
如果(!checkissupportedeviceorfinish(此)){
返回;
}
setContentView(R.layout.activity_main);
arfragment=(arfragment)getSupportFragmentManager().findFragmentById(R.id.scene_fragment);
}
公共静态布尔检查IsSupportedDeviceorFinish(最终活动){
if(Build.VERSION.SDK_INT
我只需要更新我的依赖项“`implementation'com.google.ar.sceneform.ux:sceneform-ux:1.4.0”``在这里发布崩溃日志
apply plugin: 'com.android.application'
apply plugin: 'com.google.ar.sceneform.plugin'
android {
compileSdkVersion 28
defaultConfig {
applicationId "fr.maximedumas.firstscene"
minSdkVersion 24
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.ar.sceneform.ux:sceneform-ux:1.4.0'
// Alternatively, use ArSceneView without the UX dependency.
implementation 'com.google.ar.sceneform:core:1.12.0'
}
sceneform.asset('sampleData/earth.obj',
'default',
'sampleData/earth.sfa',
'src/main/res/raw/earth')