admin管理员组

文章数量:1316422

i am use ar_flutter_plugin_updated library and i want to create Augmented Reality (AR) project but in my project object load problem faced. So any one know it how to solve this issue?

Error:

Unable to load Renderable registryId='flutter_assets/assets/Bee.glb'

i am use ar_flutter_plugin_updated library and i want to create Augmented Reality (AR) project but in my project object load problem faced. So any one know it how to solve this issue?

Error:

Unable to load Renderable registryId='flutter_assets/assets/Bee.glb'
Share Improve this question asked Jan 30 at 5:19 Shiv SharmaShiv Sharma 3841 silver badge10 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Ensure Bee.glb is correctly placed in the assets folder and referenced in pubspec.yaml:

flutter:
  assets:
    - assets/Bee.glb

Then, run flutter pub get. Verify the correct asset loading in your code:

final node = ArModelNode(
  name: "Bee",
  uri: "assets/Bee.glb",
  scale: Vector3(0.2, 0.2, 0.2),
);
arController?.addNode(node);

Test with a different .glb file to check if the issue is model-specific. Ensure ar_flutter_plugin_updated is updated in pubspec.yaml, then run:

flutter clean
flutter pub get

Confirm Android permissions in AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA" />

If the issue persists, check logcat for errors:

adb logcat | grep flutter

Try these steps and let me know if you need further debugging!

本文标签: androidarflutterpluginupdated assets file load issueStack Overflow