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
1 Answer
Reset to default 0Ensure 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
版权声明:本文标题:android - ar_flutter_plugin_updated assets file load issue - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741984754a2408609.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论