初始化 ARControl
ARControl m_ARControl = new ARControl(this,sceneControl);
m_ARControl.setARState(true);
报错,错误为 Failed to find provider info for com.google.ar.core.services.arcorecontentprovider
您好,您可以参考下samplecode中3dar示例代码,需要自行引入所下载的jar和so依赖。这是gradle中的依赖配置供您参考
implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.2.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.1' implementation files('libs\\com.supermap.data_v1020.jar') implementation files('libs\\com.supermap.mapping_v1020.jar') implementation files('libs\\com.supermap.realspace_v1020.jar') implementation files('libs\\com.supermap.ar_v1020.jar') testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' // ARCore library implementation 'com.google.ar:core:1.11.0'