首页 / 浏览问题 / 移动GIS / 问题详情
ARControl初始化报错
26EXP 2022年02月23日

初始化 ARControl

ARControl m_ARControl = new ARControl(this,sceneControl);
m_ARControl.setARState(true);

报错,错误为 Failed to find provider info for com.google.ar.core.services.arcorecontentprovider

1个回答

您好,您可以参考下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'
2,842EXP 2022年02月23日
java.lang.IllegalStateException: ARControl init faild,need MOBILE_MODULE_3D_Effect_Runtime

又报了这个错。。。请问是啥问题啊?
...