E/EasyAR: Error: fail to load config: [{"images" :
[{"image":"/storage/emulated/0/armagic/icon/0.png","name":"name0","uid":"0"}]}]
我调用的是
private void loadExternalFromJsonFile(ImageTracker tracker, String path) {
for (ImageTarget target : ImageTarget.setupAll(path, StorageType.Absolute)) {
tracker.loadTarget(target, new FunctorOfVoidFromPointerOfTargetAndBool() {
@Override
public void invoke(Target target, boolean status) {
Log.e("HelloAR", "loadAllFromJsonFile: " +
String.format("load target (%b): %s (%d)", status, target.name(), target.runtimeID()));
}
});
}
}
json path传的是 {"images" :
[{"image":"/storage/emulated/0/armagic/icon/0.png","name":"name0","uid":"0"}]}