Skip to content

Not working on Android #7

@agreensh

Description

@agreensh

Android Version 7.0
Samsung Galaxy S6 (model SM-G920F)

Error when using the plugin in my app

E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): Failed to handle method call
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): java.lang.RuntimeException: getParameters failed (empty parameters)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at android.hardware.Camera.native_getParameters(Native Method)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at android.hardware.Camera.getParameters(Camera.java:1952)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at plugins.flutter.lamp.lamp.LampPlugin.turn(LampPlugin.java:63)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at plugins.flutter.lamp.lamp.LampPlugin.onMethodCall(LampPlugin.java:34)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:200)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at android.os.MessageQueue.next(MessageQueue.java:323)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at android.os.Looper.loop(Looper.java:136)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at android.app.ActivityThread.main(ActivityThread.java:6682)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)

Another error when building your example:

E/BoostFramework(24970): BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.Performance" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /vendor/lib64]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions