khal-it / flutter_arcore_plugin Goto Github PK
View Code? Open in Web Editor NEWA Flutter plugin for Android allowing to recongize images via ARCore
License: BSD 3-Clause "New" or "Revised" License
A Flutter plugin for Android allowing to recongize images via ARCore
License: BSD 3-Clause "New" or "Revised" License
##Error
E/flutter (29057): #0 defaultBinaryMessenger. (package:flutter/src/services/binary_messenger.dart:76:7)
E/flutter (29057): #1 defaultBinaryMessenger (package:flutter/src/services/binary_messenger.dart:89:4)
E/flutter (29057): #2 MethodChannel.binaryMessenger (package:flutter/src/services/platform_channel.dart:140:62)
E/flutter (29057): #3 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:314:35)
E/flutter (29057): #4 OptionalMethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:429:36)
E/flutter (29057): #5 SystemChrome.setPreferredOrientations (package:flutter/src/services/system_chrome.dart:236:35)
E/flutter (29057): #6 main (package:arcore_plugin_example/main.dart:9:16)
E/flutter (29057): #7 _runMainZoned.. (dart:ui/hooks.dart:239:25)
E/flutter (29057): #8 _rootRun (dart:async/zone.dart:1126:13)
E/flutter (29057): #9 _CustomZone.run (dart:async/zone.dart:1023:19)
E/flutter (29057): #10 _runZoned (dart:async/zone.dart:1518:10)
E/flutter (29057): #11 runZoned (dart:async/zone.dart:1502:12)
E/flutter (29057): #12 _runMainZoned. (dart:ui/hooks.dart:231:5)
E/flutter (29057): #13 _startIsolate. (dart:isolate-patch/isolate_patch.dart:307:19)
E/flutter (29057): #14 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
E/flutter (29057):
E/flutter (29057): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Exception: ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized.
E/flutter (29057): If you're running an application and need to access the binary messenger before runApp()
has been called (for example, during plugin initialization), then you need to explicitly call the WidgetsFlutterBinding.ensureInitialized()
first.
E/flutter (29057): If you're running a test, you can call the TestWidgetsFlutterBinding.ensureInitialized()
as the first line in your test's main()
method to initialize the binding.
E/flutter (29057): #0 main. (package:arcore_plugin_example/main.dart:25:5)
E/flutter (29057): #1 _rootRunUnary (dart:async/zone.dart:1134:38)
E/flutter (29057): #2 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
E/flutter (29057): #3 _FutureListener.handleError (dart:async/future_impl.dart:157:20)
E/flutter (29057): #4 Future._propagateToListeners.handleError (dart:async/future_impl.dart:692:47)
E/flutter (29057): #5 Future._propagateToListeners (dart:async/future_impl.dart:713:24)
E/flutter (29057): #6 Future._completeError (dart:async/future_impl.dart:532:5)
E/flutter (29057): #7 Future._asyncCompleteError. (dart:async/future_impl.dart:580:7)
E/flutter (29057): #8 _rootRun (dart:async/zone.dart:1126:13)
E/flutter (29057): #9 _CustomZone.run (dart:async/zone.dart:1023:19)
E/flutter (29057): #10 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
E/flutter (29057): #11 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:965:23)
E/flutter (29057): #12 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
E/flutter (29057): #13 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
E/flutter (29057):
E/BpSurfaceComposerClient(29057): Failed to transact (-1)
E/BpSurfaceComposerClient(29057): Failed to transact (-1)
W/ViewRootImplMainActivity: Cancelling event due to no window focus: MotionEvent { action=ACTION_CANCEL, actionButton=0, id[0]=0, x[0]=513.52454, y[0]=1904.0083, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=25505225, downTime=25505186, deviceId=8, source=0x1002 }
I/chatty (29057): uid=10392(com.peqas.arcorepluginexample) identical 1 line
W/ViewRootImplMainActivity: Cancelling event due to no window focus: MotionEvent { action=ACTION_CANCEL, actionButton=0, id[0]=0, x[0]=513.52454, y[0]=1904.0083, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=25505225, downTime=25505186, deviceId=8, source=0x1002 }
E/BpSurfaceComposerClient(29057): Failed to transact (-1)
E/BpSurfaceComposerClient(29057): Failed to transact (-1)
I/zygote (29057): Do partial code cache collection, code=23KB, data=30KB
I/zygote (29057): After code cache collection, code=23KB, data=30KB
I/zygote (29057): Increasing code cache capacity to 128KB
Forecast for the update?
Hi,
It's not a problem/issue, I just wanted to know if you could explain to me de example code becausr I wanted to know how place a 3d model that I made into my room to test arcore. And I didn't find anything explaining how to do this, could you help me please?
Can I use the package without null safety and is the package supporting measure distance?
I cloned the code and ran the application. I got this error:
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Exception: ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized. E/flutter ( 3960): If you're running an application and need to access the binary messenger before
runApp()has been called (for example, during plugin initialization), then you need to explicitly call the
WidgetsFlutterBinding.ensureInitialized()first. E/flutter ( 3960): If you're running a test, you can call the
TestWidgetsFlutterBinding.ensureInitialized()as the first line in your test's
main() method to initialize the binding.
Plz help me make 360 photo viewer.
Thanks u so much
e: C:\Users\888888\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\arcore_flutter_plugin-0.0.11\android\src\main\kotlin\com\difrancescogianmarco\arcore_flutter_plugin\ArCoreView.kt: (245, 38): Object is not abstract and does not implement abstract member public abstract fun onActivityCreated(@nonnull p0: Activity, @nullable p1: Bundle?): Unit defined in android.app.Application.ActivityLifecycleCallbacks
e: C:\Users\888888\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\arcore_flutter_plugin-0.0.11\android\src\main\kotlin\com\difrancescogianmarco\arcore_flutter_plugin\ArCoreView.kt: (246, 13): 'onActivityCreated' overrides nothing
FAILURE: Build failed with an exception.
Compilation error. See log for more details
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 8s
Exception: Gradle task assembleDebug failed with exit code 1
hi, when I try to run the app in debug mode, I get this error
Launching lib\main.dart on LG H870 in debug mode...
Running Gradle task 'assembleDebug'...
โ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
Waiting for LG H870 to report its views...
Debug service listening on ws://127.0.0.1:56101/Z8fh7JN4v7k=/ws
Syncing files to device LG H870...
D/PhoneWindow( 7394): windowLightStatusBar : false, disable View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
I/TouchFilterInputStageHelper( 7394): [needTouchEventFilter] Displayid : 66
E/AndroidRuntime( 7394): FATAL EXCEPTION: GLThread 4718
E/AndroidRuntime( 7394): Process: com.dna.augment_2, PID: 7394
E/AndroidRuntime( 7394): java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.AssetManager android.content.Context.getAssets()' on a null object reference
E/AndroidRuntime( 7394): at common.rendering.ShaderUtil.readRawTextFileFromAssets(ShaderUtil.java:86)
E/AndroidRuntime( 7394): at common.rendering.ShaderUtil.loadGLShader(ShaderUtil.java:36)
E/AndroidRuntime( 7394): at common.rendering.BackgroundRenderer.createOnGlThread(BackgroundRenderer.java:102)
E/AndroidRuntime( 7394): at com.peqas.arcoreplugin.FlutterArcoreView.onSurfaceCreated(FlutterArcoreView.java:258)
E/AndroidRuntime( 7394): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1539)
E/AndroidRuntime( 7394): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
W/libEGL ( 7394): EGLNativeWindowType 0x7b25f44010 disconnect failed
W/System ( 7394): A resource failed to call release.
this plugin run in iOs devices?
Hey, How about to migrate to AndroidX libraries?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.