developerlibs / flutter_image_ppicker Goto Github PK
View Code? Open in Web Editor NEWImage picker is a utility that show image picker option and crop it for user profile.
Image picker is a utility that show image picker option and crop it for user profile.
Getting an error while capturing an image:
Steps to reproduce
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.7.8+hotfix.2, on Linux, locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.35.1)
[✓] Connected device (1 available)
LOG:
flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 0.8s
Resolving dependencies... 2.0s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 6.5s
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk... 1.5s
V/DartMessenger( 1411): Received message from Dart over channel 'flutter/platform'
V/DartMessenger( 1411): Deferring to registered handler to process message.
V/PlatformChannel( 1411): Received 'SystemChrome.setApplicationSwitcherDescription' message.
D/EGL_emulation( 1411): eglMakeCurrent: 0xe8bef500: ver 2 0 (tinfo 0xef9ed520)
V/DartMessenger( 1411): Received message from Dart over channel 'flutter/platform'
V/DartMessenger( 1411): Deferring to registered handler to process message.
V/PlatformChannel( 1411): Received 'SystemChrome.setSystemUIOverlayStyle' message.
V/DartMessenger( 1411): Received message from Dart over channel 'flutter/platform'
V/DartMessenger( 1411): Deferring to registered handler to process message.
V/PlatformChannel( 1411): Received 'SystemChrome.setApplicationSwitcherDescription' message.
Syncing files to device Android SDK built for x86...
7,590ms (!)
�� To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:41319/Xraz9s2rs_E=/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
V/DartMessenger( 1411): Received message from Dart over channel 'plugins.flutter.io/image_picker'
V/DartMessenger( 1411): Deferring to registered handler to process message.
V/LifecycleChannel( 1411): Sending AppLifecycleState.inactive message.
V/DartMessenger( 1411): Sending message with callback over channel 'flutter/lifecycle'
D/EGL_emulation( 1411): eglMakeCurrent: 0xebd85c60: ver 2 0 (tinfo 0xd452cdd0)
V/LifecycleChannel( 1411): Sending AppLifecycleState.paused message.
V/DartMessenger( 1411): Sending message with callback over channel 'flutter/lifecycle'
//This is while capturing an image
V/LifecycleChannel( 1411): Sending AppLifecycleState.inactive message.
V/DartMessenger( 1411): Sending message with callback over channel 'flutter/lifecycle'
V/LifecycleChannel( 1411): Sending AppLifecycleState.resumed message.
V/DartMessenger( 1411): Sending message with callback over channel 'flutter/lifecycle'
D/EGL_emulation( 1411): eglCreateContext: 0xe8bef5c0: maj 2 min 0 rcv 2
D/EGL_emulation( 1411): eglMakeCurrent: 0xe8bef5c0: ver 2 0 (tinfo 0xef9ed520)
D/EGL_emulation( 1411): eglMakeCurrent: 0xe8bef5c0: ver 2 0 (tinfo 0xef9ed520)
D/EGL_emulation( 1411): eglMakeCurrent: 0xebd85c60: ver 2 0 (tinfo 0xd452cdd0)
W/Binder ( 1411): Caught a RuntimeException from the binder stub implementation.
W/Binder ( 1411): java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: Binder:1411_2
W/Binder ( 1411): at io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread(FlutterJNI.java:794)
W/Binder ( 1411): at io.flutter.embedding.engine.FlutterJNI.invokePlatformMessageResponseCallback(FlutterJNI.java:727)
W/Binder ( 1411): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:140)
W/Binder ( 1411): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:225)
W/Binder ( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate.finishWithSuccess(ImagePickerDelegate.java:481)
W/Binder ( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleImageResult(ImagePickerDelegate.java:455)
W/Binder ( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate.access$000(ImagePickerDelegate.java:65)
W/Binder ( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate$4.onPathReady(ImagePickerDelegate.java:422)
W/Binder ( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate$3$1.onScanCompleted(ImagePickerDelegate.java:152)
W/Binder ( 1411): at android.media.MediaScannerConnection$ClientProxy.onScanCompleted(MediaScannerConnection.java:204)
W/Binder ( 1411): at android.media.MediaScannerConnection$1.scanCompleted(MediaScannerConnection.java:53)
W/Binder ( 1411): at android.media.IMediaScannerListener$Stub.onTransact(IMediaScannerListener.java:61)
W/Binder ( 1411): at android.os.Binder.execTransact(Binder.java:731)
//This while selecting Gallery from dialogue box
V/DartMessenger( 1411): Received message from Dart over channel 'plugins.flutter.io/image_picker'
V/DartMessenger( 1411): Deferring to registered handler to process message.
E/MethodChannel#plugins.flutter.io/image_picker( 1411): Failed to handle method call
E/MethodChannel#plugins.flutter.io/image_picker( 1411): java.lang.IllegalStateException: Reply already submitted
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:135)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:230)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate.finishWithError(ImagePickerDelegate.java:490)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate.finishWithAlreadyActiveError(ImagePickerDelegate.java:486)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate.chooseImageFromGallery(ImagePickerDelegate.java:245)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.plugins.imagepicker.ImagePickerPlugin.onMethodCall(ImagePickerPlugin.java:56)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:222)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:96)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:643)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at android.os.MessageQueue.next(MessageQueue.java:326)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at android.os.Looper.loop(Looper.java:160)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at android.app.ActivityThread.main(ActivityThread.java:6669)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/flutter ( 1411): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(error, Reply already submitted, null)
E/flutter ( 1411): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
E/flutter ( 1411): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33)
E/flutter ( 1411):
E/flutter ( 1411): #2 ImagePicker.pickImage (package:image_picker/image_picker.dart:53:40)
E/flutter ( 1411):
E/flutter ( 1411): #3 ImagePickerHandler.openGallery (package:flutter_image_ppicker/image_picker_handler.dart:24:35)
E/flutter ( 1411): #4 _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:49:6)
E/flutter ( 1411): #5 ImagePickerHandler.openGallery (package:flutter_image_ppicker/image_picker_handler.dart:22:14)
E/flutter ( 1411): #6 ImagePickerDialog.build. (package:flutter_image_ppicker/image_picker_dialog.dart:90:42)
E/flutter ( 1411): #7 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
E/flutter ( 1411): #8 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11)
E/flutter ( 1411): #9 TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:275:7)
E/flutter ( 1411): #10 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:455:9)
E/flutter ( 1411): #11 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:75:13)
E/flutter ( 1411): #12 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:102:11)
E/flutter ( 1411): #13 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218:19)
E/flutter ( 1411): #14 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
E/flutter ( 1411): #15 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
E/flutter ( 1411): #16 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
E/flutter ( 1411): #17 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
E/flutter ( 1411): #18 _rootRunUnary (dart:async/zone.dart:1136:13)
E/flutter ( 1411): #19 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter ( 1411): #20 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
E/flutter ( 1411): #21 _invoke1 (dart:ui/hooks.dart:250:10)
E/flutter ( 1411): #22 _dispatchPointerDataPacket (dart:ui/hooks.dart:159:5)
E/flutter ( 1411):
I/flutter (31858): ══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
I/flutter (31858): The following assertion was thrown resolving an image codec:
I/flutter (31858): Unable to load asset:
I/flutter (31858): /data/user/0/com.libs.flutterimageppicker/cache/image_cropper_1603461241225.jpg
I/flutter (31858):
I/flutter (31858): When the exception was thrown, this was the stack:
I/flutter (31858): #0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:223:7)
I/flutter (31858):
I/flutter (31858): #1 AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:669:31)
I/flutter (31858): #2 AssetBundleImageProvider.load (package:flutter/src/painting/image_provider.dart:652:14)
I/flutter (31858): #3 ImageProvider.resolveStreamForKey. (package:flutter/src/painting/image_provider.dart:505:13)
I/flutter (31858): #4 ImageCache.putIfAbsent (package:flutter/src/painting/image_cache.dart:360:22)
I/flutter (31858): #5 ImageProvider.resolveStreamForKey (package:flutter/src/painting/image_provider.dart:503:80)
I/flutter (31858): #6 ImageProvider.resolve. (package:flutter/src/painting/image_provider.dart:334:9)
I/flutter (31858): #7 ImageProvider._createErrorHandlerAndKey.. (package:flutter/src/painting/image_provider.dart:464:26)
I/flutter (31858): #8 SynchronousFuture.then (package:flutter/src/foundation/synchronous_future.dart:43:29)
I/flutter (31858): #9 ImageProvider._createErrorHandlerAndKey. (package:flutter/src/painting/image_provider.dart:461:11)
I/flutter (31858): #13 ImageProvider._createErrorHandlerAndKey (package:flutter/src/painting/image_provider.dart:453:16)
I/flutter (31858): #14 ImageProvider.resolve (package:flutter/src/painting/image_provider.dart:331:5)
I/flutter (31858): #15 DecorationImagePainter.paint (package:flutter/src/painting/decoration_image.dart:259:55)
I/flutter (31858): #16 _BoxDecorationPainter._paintBackgroundImage (package:flutter/src/painting/box_decoration.dart:465:19)
I/flutter (31858): #17 _BoxDecorationPainter.paint (package:flutter/src/painting/box_decoration.dart:483:5)
I/flutter (31858): #18 RenderDecoratedBox.paint (package:flutter/src/rendering/proxy_box.dart:2042:16)
I/flutter (31858): #19 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2266:7)
I/flutter (31858): #20 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:186:13)
I/flutter (31858): #21 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:133:15)
I/flutter (31858): #22 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2266:7)
I/flutter (31858): #23 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:186:13)
I/flutter (31858): #24 RenderShiftedBox.paint (package:flutter/src/rendering/shifted_box.dart:72:15)
I/flutter (31858): #25 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2266:7)
I/flutter (31858): #26 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:186:13)
I/flutter (31858): #27 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:133:15)
I/flutter (31858): #28 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2266:7)
I/flutter (31858): #29 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:186:13)
I/flutter (31858): #30 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:133:15)
I/flutter (31858): #31 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2266:7)
I/flutter (31858): #32 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:186:13)
I/flutter (31858): #33 RenderBoxContainerDefaultsMixin.defaultPaint (package:flutter/src/rendering/box.dart:2525:15)
I/flutter (31858): #34 RenderCustomMultiChildLayoutBox.paint (package:flutter/src/rendering/custom_layout.dart:406:5)
I/flutter (31858): #35 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2266:7)
I/flutter (31858): #36 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:186:13)
I/flutter (31858): #37 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:133:15)
I/flutter (31858): #38 _RenderInkFeatures.paint (package:flutter/src/material/material.dart:533:11)
I/flutter (31858): #39 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2266:7)
I/flutter (31858): #40 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:186:13)
I/flutter (31858): #41 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:133:15)
I/flutter (31858): #42 PaintingContext.pushLayer (package:flutter/src/rendering/object.dart:393:12)
I/flutter (31858): #43 RenderPhysicalModel.paint (package:flutter/src/rendering/proxy_box.dart:1821:15)
I/flutter (31858): #44 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2266:7)
I/flutter (31858): #45 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:186:13)
I/flutter (31858): #46 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:133:15)
I/flutter (31858): #47 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2266:7)
I/flutter (31858): #48 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:186:13)
I/flutter (31858): #49 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:133:15)
I/flutter (31858): #50 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2266:7)
I/flutter (31858): #51 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:137:11)
I/flutter (31858): #52 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:97:5)
I/flutter (31858): #53 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:982:29)
I/flutter (31858): #54 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:406:19)
I/flutter (31858): #55 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:867:13)
I/flutter (31858): #56 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:286:5)
I/flutter (31858): #57 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1117:15)
I/flutter (31858): #58 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1056:9)
I/flutter (31858): #59 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:972:5)
I/flutter (31858): #63 _invoke (dart:ui/hooks.dart:253:10)
I/flutter (31858): #64 _drawFrame (dart:ui/hooks.dart:211:3)
I/flutter (31858): (elided 6 frames from dart:async)
I/flutter (31858):
I/flutter (31858): Image provider: ExactAssetImage(name:
I/flutter (31858): "/data/user/0/com.libs.flutterimageppicker/cache/image_cropper_1603461241225.jpg", scale: 1.0,
I/flutter (31858): bundle: null)
I/flutter (31858): Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#c4433(), name:
I/flutter (31858): "/data/user/0/com.libs.flutterimageppicker/cache/image_cropper_1603461241225.jpg", scale: 1.0)
I/flutter (31858): ════════════════════════════════════════════════════════════════════════════════════════════════════
Hi,
I am getting the following error when trying to use the cropImage in my project.
May I know how to fix it?
Thanks in advance.
E/MethodChannel#plugins.hunghd.vn/image_cropper(20747): Failed to handle method call
E/MethodChannel#plugins.hunghd.vn/image_cropper(20747): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.example/com.yalantis.ucrop.UCropActivity}; have you declared this activity in your AndroidManifest.xml?
Running Gradle task 'assembleDebug'...
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:15: error: package android.support.annotation does not exist
import android.support.annotation.VisibleForTesting;
^
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:16: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
^
symbol: class ActivityCompat
location: package android.support.v4.app
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:17: error: package android.support.v4.content does not exist
import android.support.v4.content.FileProvider;
^
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerFileProvider.java:3: error: package android.support.v4.content does not exist
import android.support.v4.content.FileProvider;
^
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerFileProvider.java:10: error: cannot find symbol
public class ImagePickerFileProvider extends FileProvider {}
^
symbol: class FileProvider
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerPlugin.java:8: error: package android.support.annotation does not exist
import android.support.annotation.VisibleForTesting;
^
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:68: error: cannot find symbol
@VisibleForTesting static final int REQUEST_CODE_CHOOSE_IMAGE_FROM_GALLERY = 2342;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:69: error: cannot find symbol
@VisibleForTesting static final int REQUEST_CODE_TAKE_IMAGE_WITH_CAMERA = 2343;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:70: error: cannot find symbol
@VisibleForTesting static final int REQUEST_EXTERNAL_IMAGE_STORAGE_PERMISSION = 2344;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:71: error: cannot find symbol
@VisibleForTesting static final int REQUEST_CAMERA_IMAGE_PERMISSION = 2345;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:72: error: cannot find symbol
@VisibleForTesting static final int REQUEST_CODE_CHOOSE_VIDEO_FROM_GALLERY = 2352;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:73: error: cannot find symbol
@VisibleForTesting static final int REQUEST_CODE_TAKE_VIDEO_WITH_CAMERA = 2353;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:74: error: cannot find symbol
@VisibleForTesting static final int REQUEST_EXTERNAL_VIDEO_STORAGE_PERMISSION = 2354;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:75: error: cannot find symbol
@VisibleForTesting static final int REQUEST_CAMERA_VIDEO_PERMISSION = 2355;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:77: error: cannot find symbol
@VisibleForTesting final String fileProviderName;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:164: error: cannot find symbol
@VisibleForTesting
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerPlugin.java:40: error: cannot find symbol
@VisibleForTesting
^
symbol: class VisibleForTesting
location: class ImagePickerPlugin
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:122: error: cannot find symbol
return ActivityCompat.checkSelfPermission(activity, permissionName)
^
symbol: variable ActivityCompat
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:128: error: cannot find symbol
ActivityCompat.requestPermissions(activity, new String[] {permissionName}, requestCode);
^
symbol: variable ActivityCompat
C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:140: error: cannot find symbol
return FileProvider.getUriForFile(activity, fileProviderName, file);
^
symbol: variable FileProvider
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
20 errors
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
{com.mjm.mjmgold/com.mjm.mjmgold.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2342, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:2
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.