Thank you for taking the time to visit my github website.
- This is my 😄: https://profile-summary-for-github.com/user/hnvn
- Mail me 📫: [email protected]
A Flutter plugin for Android and iOS supports cropping images
Thank you for taking the time to visit my github website.
Thanks for the plugin. It works fine on Android, still haven't tested on iOS
My problem is the image size is much bigger after cropping.
For example i'm uploading an jpeg image with 77kb, but after cropping it goest to 300 kb.
Is any way to handle image compression with this plugin. or i have to find other ways to handle this.
Is this available for File type only? What about CachedNetworkImage?
When i rotate the image within the modification page the rotation is happening. But when i click (tick) button the output is not being reflected.
i need crop in background. how should i close UI.
here is my AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.cosin">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<uses-permission android:name="android.permission.INTERNET"/>
<application android:name="io.flutter.app.FlutterApplication" android:label="cosin" android:icon="@mipmap/ic_launcher">
<activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<!-- This keeps the window background of the activity showing
until Flutter renders its first frame. It can be removed if
there is no splash screen (such as the default splash screen
defined in @style/LaunchTheme). -->
<meta-data android:name="io.flutter.app.android.SplashScreenUntilFirstFrame" android:value="true" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity android:name="com.yalantis.ucrop.UCropActivity" android:screenOrientation="portrait" android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
</application>
</manifest>
here is build.gradle
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
def keystorePropertiesFile = rootProject.file("key.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android {
compileSdkVersion 28
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.cosin"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
the error message is
I/zygote64( 1818): Rejecting re-init on previously-failed class java.lang.Class<com.yalantis.ucrop.UCropActivity>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/app/AppCompatActivity;
I/zygote64( 1818): at android.content.Intent com.yalantis.ucrop.UCrop.getIntent(android.content.Context) (UCrop.java:186)
I/zygote64( 1818): at void com.yalantis.ucrop.UCrop.start(android.app.Activity, int) (UCrop.java:138)
I/zygote64( 1818): at void com.yalantis.ucrop.UCrop.start(android.app.Activity) (UCrop.java:128)
I/zygote64( 1818): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:91)
I/zygote64( 1818): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/zygote64( 1818): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/zygote64( 1818): at void io.flutter.view.FlutterNativeView$PlatformMessageHandlerImpl.handleMessageFromDart(java.lang.String, byte[], int) (FlutterNativeView.java:188)
I/zygote64( 1818): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:202)
I/zygote64( 1818): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/zygote64( 1818): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:331)
I/zygote64( 1818): at void android.os.Looper.loop() (Looper.java:149)
I/zygote64( 1818): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6701)
I/zygote64( 1818): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/zygote64( 1818): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:246)
I/zygote64( 1818): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:783)
I/zygote64( 1818): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.AppCompatActivity" on path: DexPathList[[zip file "/data/app/com.example.cosin-nHav_I5fp3oS-luRzJkjMQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.cosin-nHav_I5fp3oS-luRzJkjMQ==/lib/arm64, /data/app/com.example.cosin-nHav_I5fp3oS-luRzJkjMQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
I/zygote64( 1818): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93)
I/zygote64( 1818): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/zygote64( 1818): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/zygote64( 1818): at android.content.Intent com.yalantis.ucrop.UCrop.getIntent(android.content.Context) (UCrop.java:186)
I/zygote64( 1818): at void com.yalantis.ucrop.UCrop.start(android.app.Activity, int) (UCrop.java:138)
I/zygote64( 1818): at void com.yalantis.ucrop.UCrop.start(android.app.Activity) (UCrop.java:128)
I/zygote64( 1818): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:91)
I/zygote64( 1818): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/zygote64( 1818): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/zygote64( 1818): at void io.flutter.view.FlutterNativeView$PlatformMessageHandlerImpl.handleMessageFromDart(java.lang.String, byte[], int) (FlutterNativeView.java:188)
I/zygote64( 1818): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:202)
I/zygote64( 1818): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/zygote64( 1818): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:331)
I/zygote64( 1818): at void android.os.Looper.loop() (Looper.java:149)
I/zygote64( 1818): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6701)
I/zygote64( 1818): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/zygote64( 1818): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:246)
I/zygote64( 1818): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:783)
I/zygote64( 1818):
E/flutter ( 1818): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(40)] java.lang.NoClassDefFoundError: Failed resolution of: Lcom/yalantis/ucrop/UCropActivity;
E/flutter ( 1818): at com.yalantis.ucrop.UCrop.getIntent(UCrop.java:186)
E/flutter ( 1818): at com.yalantis.ucrop.UCrop.start(UCrop.java:138)
E/flutter ( 1818): at com.yalantis.ucrop.UCrop.start(UCrop.java:128)
E/flutter ( 1818): at vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(ImageCropperDelegate.java:91)
E/flutter ( 1818): at vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(ImageCropperPlugin.java:36)
E/flutter ( 1818): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:201)
E/flutter ( 1818): at io.flutter.view.FlutterNativeView$PlatformMessageHandlerImpl.handleMessageFromDart(FlutterNativeView.java:188)
E/flutter ( 1818): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:202)
E/flutter ( 1818): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter ( 1818): at android.os.MessageQueue.next(MessageQueue.java:331)
E/flutter ( 1818): at android.os.Looper.loop(Looper.java:149)
E/flutter ( 1818): at android.app.ActivityThread.main(ActivityThread.java:6701)
E/flutter ( 1818): at java.lang.reflect.Method.invoke(Native Method)
E/flutter ( 1818): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:246)
E/flutter ( 1818): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
E/flutter ( 1818): Caused by: java.lang.ClassNotFoundException: com.yalantis.ucrop.UCropActivity
E/flutter ( 1818): at java.lang.VMClassLoader.findLoadedClass(Native Method)
E/flutter ( 1818): at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
E/flutter ( 1818): at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
E/flutter ( 1818): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/flutter ( 1818): ... 15 more
the code of crash app
var image = await ImagePicker.pickImage(source: ImageSource.gallery);
File croppedFile = await ImageCropper.cropImage(
sourcePath: image.path,
ratioX: 1.0,
ratioY: 1.0,
maxWidth: 512,
maxHeight: 512,
);
Hey, great work here! Would you be able to implement a parameter to toggle resizing capabilities? Thanks.
Hello and thanks for the great work you provided!
Is it possible to implement something like minWith and maxWith? Because now a user can crop the image infinit small?
Thanks,
Niklas
I saw the crop feature is shown in the demo GIF ,but when I run the example in my Android phone ,I could not find it ,could you help to tell?
Plugin version: 0.0.7
Platform: Android
Exception:
E/MethodChannel#plugins.hunghd.vn/image_cropper( 820): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
E/MethodChannel#plugins.hunghd.vn/image_cropper( 820): at vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(ImageCropperDelegate.java:51)
I suggest that ImageCropper.cropImage() parameter circleShape should have a default false value
I wanna rotate the image 90°,and the ratio is 4:3, but after rotated the radio become 3:4.how to fix it?
There's a problem with transparency in png files. If i try to crop an image with transparency, it turns into black after cropping. If I don't crop the image the transparency remain.
Thanks.
It seems that the cropper leaves an image in the data directory of the app and is slowly increasing the app size. I notice that it only happens when I use the cropper which is odd.
I have no idea how to remove this file or data. I have tried clearing that folder, I can remove the cropped image but there is still 1 MB left of something. I have no idea what it is and how to delete it.
Any ideas when this could be and how to solve this?
Whenever i try to crop the image i get the following error. Can you please tell me how to fix this ASAP?
I/ter_imagepicke(15968): Rejecting re-init on previously-failed class java.lang.Class<com.yalantis.ucrop.UCropFragment>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/Fragment;
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.Fragment" on path: DexPathList[[zip file "/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64, /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk!/lib/arm64-v8a, /system/lib64]]
I/ter_imagepicke(15968): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968):
I/ter_imagepicke(15968): Rejecting re-init on previously-failed class java.lang.Class<com.yalantis.ucrop.UCropFragment>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/Fragment;
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.Fragment" on path: DexPathList[[zip file "/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64, /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk!/lib/arm64-v8a, /system/lib64]]
I/ter_imagepicke(15968): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968):
I/ter_imagepicke(15968): Rejecting re-init on previously-failed class java.lang.Class<com.yalantis.ucrop.UCropFragment>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/Fragment;
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.Fragment" on path: DexPathList[[zip file "/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64, /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk!/lib/arm64-v8a, /system/lib64]]
I/ter_imagepicke(15968): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968):
I/ter_imagepicke(15968): Rejecting re-init on previously-failed class java.lang.Class<com.yalantis.ucrop.UCropFragment>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/Fragment;
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.Fragment" on path: DexPathList[[zip file "/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64, /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk!/lib/arm64-v8a, /system/lib64]]
I/ter_imagepicke(15968): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968):
I/ter_imagepicke(15968): Rejecting re-init on previously-failed class java.lang.Class<com.yalantis.ucrop.UCropFragment>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/Fragment;
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.Fragment" on path: DexPathList[[zip file "/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64, /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk!/lib/arm64-v8a, /system/lib64]]
I/ter_imagepicke(15968): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968):
I/ter_imagepicke(15968): Rejecting re-init on previously-failed class java.lang.Class<com.yalantis.ucrop.UCropActivity>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/app/AppCompatActivity;
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.AppCompatActivity" on path: DexPathList[[zip file "/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64, /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk!/lib/arm64-v8a, /system/lib64]]
I/ter_imagepicke(15968): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968):
I/ter_imagepicke(15968): Rejecting re-init on previously-failed class java.lang.Class<com.yalantis.ucrop.UCropActivity>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/app/AppCompatActivity;
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.AppCompatActivity" on path: DexPathList[[zip file "/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64, /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk!/lib/arm64-v8a, /system/lib64]]
I/ter_imagepicke(15968): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968):
I/ter_imagepicke(15968): Rejecting re-init on previously-failed class java.lang.Class<com.yalantis.ucrop.UCropActivity>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/app/AppCompatActivity;
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.AppCompatActivity" on path: DexPathList[[zip file "/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64, /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk!/lib/arm64-v8a, /system/lib64]]
I/ter_imagepicke(15968): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/ter_imagepicke(15968): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/ter_imagepicke(15968): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/ter_imagepicke(15968): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/ter_imagepicke(15968): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/ter_imagepicke(15968): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/ter_imagepicke(15968): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/ter_imagepicke(15968): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/ter_imagepicke(15968): at void android.os.Looper.loop() (Looper.java:189)
I/ter_imagepicke(15968): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7168)
I/ter_imagepicke(15968): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/ter_imagepicke(15968): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:576)
I/ter_imagepicke(15968): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:942)
I/ter_imagepicke(15968):
E/flutter (15968): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(40)] java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/app/AppCompatActivity;
E/flutter (15968): at com.yalantis.ucrop.UCrop.of(UCrop.java:64)
E/flutter (15968): at vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(ImageCropperDelegate.java:84)
E/flutter (15968): at vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(ImageCropperPlugin.java:36)
E/flutter (15968): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:201)
E/flutter (15968): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:88)
E/flutter (15968): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:219)
E/flutter (15968): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (15968): at android.os.MessageQueue.next(MessageQueue.java:326)
E/flutter (15968): at android.os.Looper.loop(Looper.java:189)
E/flutter (15968): at android.app.ActivityThread.main(ActivityThread.java:7168)
E/flutter (15968): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (15968): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
E/flutter (15968): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)
E/flutter (15968): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.AppCompatActivity" on path: DexPathList[[zip file "/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64, /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/base.apk!/lib/arm64-v8a, /system/lib64]]
E/flutter (15968): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
E/flutter (15968): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/flutter (15968): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/flutter (15968): ... 13 more
E/flutter (15968):
F/flutter (15968): [FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(77)] Check failed: CheckException(env).
F/libc (15968): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 15968 (ter_imagepicker), pid 15968 (ter_imagepicker)
Build fingerprint: 'Realme/RMX1825/RMX1825:9/PPR1.180610.011/1552053481:user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 15968, tid: 15968, name: ter_imagepicker >>> com.example.flutter_imagepicker <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(77)] Check failed: CheckException(env).
'
x0 0000000000000000 x1 0000000000003e60 x2 0000000000000006 x3 0000000000000008
x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 0000008000000000
x8 0000000000000083 x9 00000074cffba828 x10 fffffff87ffffbdf x11 0000000000000001
x12 00000074400fdea0 x13 0000000000000018 x14 ffffffffffffffff x15 00001cf3a89d9142
x16 00000074cfff12b0 x17 00000074cff2f3d8 x18 0000007fe04bfa6a x19 0000000000003e60
x20 0000000000003e60 x21 0000000000000083 x22 000000744adf8018 x23 0000007442bf5060
x24 0000000000000033 x25 0000000000000050 x26 00000074d156c5e0 x27 0000000000000038
x28 0000000000000001 x29 0000007fe04c0380
sp 0000007fe04c0340 lr 00000074cff23b90 pc 00000074cff23bbc
backtrace:
#00 pc 0000000000021bbc /system/lib64/libc.so (abort+124)
#1 pc 0000000000d143b8 /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64/libflutter.so (offset 0xd00000)
#2 pc 0000000000d07394 /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64/libflutter.so (offset 0xd00000)
#3 pc 0000000000d058b0 /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64/libflutter.so (offset 0xd00000)
#4 pc 0000000000d499ac /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64/libflutter.so (offset 0xd00000)
#5 pc 0000000000d14e78 /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64/libflutter.so (offset 0xd00000)
#6 pc 0000000000d18cc0 /data/app/com.example.flutter_imagepicker-aWfGBS9VE-kDveAFJf7ZGg==/lib/arm64/libflutter.so (offset 0xd00000)
#7 pc 0000000000014474 /system/lib64/libutils.so (android::Looper::pollInner(int)+836)
#8 pc 000000000001408c /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+60)
#9 pc 0000000000126844 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44)
#10 pc 00000000003f7fec /system/framework/arm64/boot-framework.oat (offset 0x3e3000) (android.media.MediaExtractor.seekTo [DEDUPED]+140)
#11 pc 0000000000002b1c /dev/ashmem/dalvik-jit-code-cache (deleted) (android.os.MessageQueue.next+204)
#12 pc 0000000000562388 /system/lib64/libart.so (art_quick_invoke_stub+584)
#13 pc 00000000000d0340 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
#14 pc 0000000000284250 /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
#15 pc 000000000027e20c /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
#16 pc 0000000000531bd0 /system/lib64/libart.so (MterpInvokeVirtual+584)
#17 pc 0000000000554914 /system/lib64/libart.so (ExecuteMterpImpl+14228)
#18 pc 0000000000b87646 /system/framework/boot-framework.vdex (android.os.Looper.loop+186)
#19 pc 0000000000257d08 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.325888537+496)
#20 pc 000000000025d888 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#21 pc 000000000027e1f0 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
#22 pc 00000000005330d4 /system/lib64/libart.so (MterpInvokeStatic+204)
#23 pc 0000000000554a94 /system/lib64/libart.so (ExecuteMterpImpl+14612)
#24 pc 00000000004076f4 /system/framework/boot-framework.vdex (android.app.ActivityThread.main+232)
#25 pc 0000000000257d08 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.325888537+496)
#26 pc 00000000005215e8 /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
#27 pc 000000000056b4fc /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
#28 pc 000000000056264c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
#29 pc 00000000000d0360 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
#30 pc 0000000000465bf8 /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
#31 pc 0000000000467650 /system/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1440)
#32 pc 00000000003f6470 /system/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+48)
#33 pc 000000000011e6d4 /system/framework/arm64/boot.oat (offset 0x114000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+180)
#34 pc 0000000000562388 /system/lib64/libart.so (art_quick_invoke_stub+584)
#35 pc 00000000000d0340 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
#36 pc 0000000000284250 /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
#37 pc 000000000027e20c /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
#38 pc 0000000000531bd0 /system/lib64/libart.so (MterpInvokeVirtual+584)
#39 pc 0000000000554914 /system/lib64/libart.so (ExecuteMterpImpl+14228)
#40 pc 0000000001255704 /system/framework/boot-framework.vdex (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
#41 pc 0000000000257d08 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.325888537+496)
#42 pc 00000000005215e8 /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
#43 pc 000000000056b4fc /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
#44 pc 0000000000e05614 /system/framework/arm64/boot-framework.oat (offset 0x3e3000) (com.android.internal.os.ZygoteInit.main+2084)
#45 pc 000000000056264c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
#46 pc 00000000000d0360 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
#47 pc 0000000000465bf8 /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
#48 pc 0000000000465850 /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+416)
#49 pc 00000000003688cc /system/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+644)
#50 pc 00000000000b4fc8 /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120)
#51 pc 00000000000b79c4 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vectorandroid::String8 const&, bool)+884)
#52 pc 0000000000002228 /system/bin/app_process64 (main+1200)
#53 pc 00000000000b0210 /system/lib64/libc.so (__libc_init+88)
this's so good to use,
but it not support androidx,
please support androidx,thanks
😊
After adding the dependency and activity tag in AndroidManifest.xml file getting following error.
Android dependency 'com.github.yalantis:ucrop' has different version for the compile (2.2.2-native) and runtime (2.2.3) classpath. You should manually set the same version via DependencyResolution
I recently updated my flutter version to 1.6.3 and now my cropper crashes the app, with FATAL EXCEPTION: AsyncTask #3
I use version 1.0.2 image_cropper
EDIT: Version 1.5.8 of Flutter is working fine with the cropper
is possible change android library to this one ?
https://github.com/ArthurHub/Android-Image-Cropper
current library is ugly and big restriction is : user can't select custom ratio
i don't have any restriction to ratio of image
Hi @hnvn
You plugin allow a person to crop and resize according the maxHeight and Width, can I use it to only resize an image?
I never saw a plugin so simple like yours and maybe with a simple param this would be possible maintaining the aspect ratio?
Thanks
Flutter dependencies:
flutter:
sdk: flutter
sqflite: ^1.1.0
image_picker: ^0.5.0
path_provider:
When I add new dependency
image_cropper: ^1.0.0
build fails
with error
Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
Attached diff of debug dependencies:
diff-y.txt
The error happes after migrating to Androidx,pls update your plugin to Androidx compatible
I tried this plugin and worked perfectly on iOS but on Android, app will crash
log like so
V/BoostFramework(22266): mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])
V/BoostFramework(22266): mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()
V/BoostFramework(22266): mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])
V/BoostFramework(22266): mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
V/BoostFramework(22266): mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()
V/BoostFramework(22266): BoostFramework() : mPerf = com.qualcomm.qti.Performance@544293f
W/art (22266): Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
D/BitmapLoadUtils(22266): maxBitmapSize: 2078
D/BitmapWorkerTask(22266): Uri scheme: file
E/TransformImageView(22266): onFailure: setImageUri
E/TransformImageView(22266): java.io.FileNotFoundException: Permission denied
E/TransformImageView(22266): at android.os.Parcel.openFileDescriptor(Native Method)
E/TransformImageView(22266): at android.os.ParcelFileDescriptor.openInternal(ParcelFileDescriptor.java:283)
E/TransformImageView(22266): at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:200)
E/TransformImageView(22266): at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:981)
E/TransformImageView(22266): at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:839)
E/TransformImageView(22266): at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:793)
E/TransformImageView(22266): at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:100)
E/TransformImageView(22266): at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:44)
E/TransformImageView(22266): at android.os.AsyncTask$2.call(AsyncTask.java:305)
E/TransformImageView(22266): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
E/TransformImageView(22266): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
E/TransformImageView(22266): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
E/TransformImageView(22266): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
E/TransformImageView(22266): at java.lang.Thread.run(Thread.java:761)
E/AndroidRuntime(22266): FATAL EXCEPTION: main
E/AndroidRuntime(22266): Process: com.example.droidemo, PID: 22266
E/AndroidRuntime(22266): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=69, result=96, data=Intent { (has extras) }} to activity {com.example.droidemo/com.example.droidemo.MainActivity}: java.lang.IllegalArgumentException: Unsupported value: java.io.FileNotFoundException: Permission denied
E/AndroidRuntime(22266): at android.app.ActivityThread.deliverResults(ActivityThread.java:4211)
E/AndroidRuntime(22266): at android.app.ActivityThread.handleSendResult(ActivityThread.java:4254)
E/AndroidRuntime(22266): at android.app.ActivityThread.-wrap20(ActivityThread.java)
E/AndroidRuntime(22266): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1584)
E/AndroidRuntime(22266): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(22266): at android.os.Looper.loop(Looper.java:154)
E/AndroidRuntime(22266): at android.app.ActivityThread.main(ActivityThread.java:6242)
E/AndroidRuntime(22266): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(22266): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
E/AndroidRuntime(22266): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
E/AndroidRuntime(22266): Caused by: java.lang.IllegalArgumentException: Unsupported value: java.io.FileNotFoundException: Permission denied
E/AndroidRuntime(22266): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:293)
E/AndroidRuntime(22266): at io.flutter.plugin.common.StandardMethodCodec.encodeErrorEnvelope(StandardMethodCodec.java:70)
E/AndroidRuntime(22266): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:208)
E/AndroidRuntime(22266): at vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.finishWithError(ImageCropperDelegate.java:99)
E/AndroidRuntime(22266): at vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.onActivityResult(ImageCropperDelegate.java:82)
E/AndroidRuntime(22266): at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210)
E/AndroidRuntime(22266): at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139)
E/AndroidRuntime(22266): at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138)
E/AndroidRuntime(22266): at android.app.Activity.dispatchActivityResult(Activity.java:7009)
E/AndroidRuntime(22266): at android.app.ActivityThread.deliverResults(ActivityThread.java:4207)
E/AndroidRuntime(22266): ... 9 more
Lost connection to device.
Exited (sigterm)
Do you have any idea?
Thanks so much for great plugin!
Have this library implemented the feature of selecting the crop ratio as it is there in android (for eg: there are 1:1, 3:4, 3:2, 16:9 and original but i just need two out of them)
Thanks in advance !!!
Does Dart have ways to process images?
The violet color at the bottom cannot be changed, nor the 3 texts at the bottom ("crop", "rotate", "scale")
The following exception gets thrown the first time the image editor opens up, but regardless of this, it seems to work just fine
W/art ( 9573): Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
I/art ( 9573): Rejecting re-init on previously-failed class java.lang.Class<android.support.v4.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;
I/art ( 9573): at void android.support.v4.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, android.support.v4.view.OnApplyWindowInsetsListener) (ViewCompat.java:2203)
I/art ( 9573): at android.view.ViewGroup android.support.v7.app.AppCompatDelegateImplV9.createSubDecor() (AppCompatDelegateImplV9.java:436)
I/art ( 9573): at void android.support.v7.app.AppCompatDelegateImplV9.ensureSubDecor() (AppCompatDelegateImplV9.java:323)
I/art ( 9573): at void android.support.v7.app.AppCompatDelegateImplV9.setContentView(int) (AppCompatDelegateImplV9.java:284)
I/art ( 9573): at void android.support.v7.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:139)
I/art ( 9573): at void com.yalantis.ucrop.UCropActivity.onCreate(android.os.Bundle) (UCropActivity.java:114)
I/art ( 9573): at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6720)
I/art ( 9573): at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
I/art ( 9573): at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2673)
I/art ( 9573): at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2781)
I/art ( 9573): at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
I/art ( 9573): at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1508)
I/art ( 9573): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
I/art ( 9573): at void android.os.Looper.loop() (Looper.java:241)
I/art ( 9573): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6274)
I/art ( 9573): at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/art ( 9573): at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:886)
I/art ( 9573): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:776)
I/art ( 9573): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.scanrapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.scanrapp-1/lib/arm64, /data/app/com.scanrapp-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
I/art ( 9573): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
I/art ( 9573): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
I/art ( 9573): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/art ( 9573): at void android.support.v4.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, android.support.v4.view.OnApplyWindowInsetsListener) (ViewCompat.java:2203)
I/art ( 9573): at android.view.ViewGroup android.support.v7.app.AppCompatDelegateImplV9.createSubDecor() (AppCompatDelegateImplV9.java:436)
I/art ( 9573): at void android.support.v7.app.AppCompatDelegateImplV9.ensureSubDecor() (AppCompatDelegateImplV9.java:323)
I/art ( 9573): at void android.support.v7.app.AppCompatDelegateImplV9.setContentView(int) (AppCompatDelegateImplV9.java:284)
I/art ( 9573): at void android.support.v7.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:139)
I/art ( 9573): at void com.yalantis.ucrop.UCropActivity.onCreate(android.os.Bundle) (UCropActivity.java:114)
I/art ( 9573): at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6720)
I/art ( 9573): at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
I/art ( 9573): at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2673)
I/art ( 9573): at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2781)
I/art ( 9573): at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
I/art ( 9573): at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1508)
I/art ( 9573): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
I/art ( 9573): at void android.os.Looper.loop() (Looper.java:241)
I/art ( 9573): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6274)
I/art ( 9573): at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/art ( 9573): at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:886)
I/art ( 9573): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:776)
I/art ( 9573):
Hi,
When I make the app installation after I get the image_cropper I get this issue and app crash/don't start:
Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
Error connecting to the service protocol: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:65101/6iHAYjzg_Vk=/ws
image_cropper: ^1.0.2
Future _getPhoto() async {
imageFile = await ImagePicker.pickImage(
source: ImageSource.camera,
);
if (imageFile != null) {
imageFile = await _cropImage(imageFile);
setState(() {
isLoading = true;
});
_uploadFile();
}
}
Future _cropImage(File imageFile) async {
File croppedFile = await ImageCropper.cropImage(
sourcePath: imageFile.path,
ratioX: 1.0,
ratioY: 1.0,
);
return croppedFile;
}
I have no idea why... If I remove package all runs good.
On android 6.0.1
Tested image
E/AndroidRuntime(30401): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=69, result=96, data=Intent { (has extras) }} to activity {br.com.klunkriative.avanti14/br.com.klunkriative.avanti14.MainActivity}: java.lang.IllegalArgumentException: Unsupported value: java.lang.IllegalArgumentException: y + height must be <= bitmap.height()
E/AndroidRuntime(30401): at android.app.ActivityThread.deliverResults(ActivityThread.java:3717)
E/AndroidRuntime(30401): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3760)
E/AndroidRuntime(30401): at android.app.ActivityThread.access$1400(ActivityThread.java:153)
E/AndroidRuntime(30401): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1396)
E/AndroidRuntime(30401): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(30401): at android.os.Looper.loop(Looper.java:148)
E/AndroidRuntime(30401): at android.app.ActivityThread.main(ActivityThread.java:5451)
E/AndroidRuntime(30401): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(30401): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
E/AndroidRuntime(30401): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E/AndroidRuntime(30401): Caused by: java.lang.IllegalArgumentException: Unsupported value: java.lang.IllegalArgumentException: y + height must be <= bitmap.height()
E/AndroidRuntime(30401): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:293)
E/AndroidRuntime(30401): at io.flutter.plugin.common.StandardMethodCodec.encodeErrorEnvelope(StandardMethodCodec.java:70)
E/AndroidRuntime(30401): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:208)
E/AndroidRuntime(30401): at vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.finishWithError(ImageCropperDelegate.java:99)
E/AndroidRuntime(30401): at vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.onActivityResult(ImageCropperDelegate.java:82)
E/AndroidRuntime(30401): at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210)
E/AndroidRuntime(30401): at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139)
E/AndroidRuntime(30401): at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138)
E/AndroidRuntime(30401): at android.app.Activity.dispatchActivityResult(Activity.java:6528)
E/AndroidRuntime(30401): at android.app.ActivityThread.deliverResults(ActivityThread.java:3713)
Hello I found the package interesting and I would like to know how to use other languages direct from English.
i see closed issue of carlosbdw
i pick up an image first.
and when open image cropper with out crop icone
can you help
thanks
How can I get coordinates of cropped area after cropping?!
Thanks for your work in Advance. but how can I change the primaryColor of UCropActivity?
I have tried changing the theme of UCropActivity, like
<activity
android:name="com.yalantis.ucrop.UCropActivity"
android:screenOrientation="portrait"
android:theme="@style/CustomTheme"/>
but it didn't work.
I/asdfasdfsdafas(20717): Rejecting re-init on previously-failed class java.lang.Class<com.yalantis.ucrop.UCropFragment>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/Fragment;
I/asdfasdfsdafas(20717): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/asdfasdfsdafas(20717): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/asdfasdfsdafas(20717): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:36)
I/asdfasdfsdafas(20717): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/asdfasdfsdafas(20717): at void io.flutter.view.FlutterNativeView$PlatformMessageHandlerImpl.handleMessageFromDart(java.lang.String, byte[], int) (FlutterNativeView.java:188)
I/asdfasdfsdafas(20717): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:202)
I/asdfasdfsdafas(20717): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/asdfasdfsdafas(20717): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/asdfasdfsdafas(20717): at void android.os.Looper.loop() (Looper.java:160)
I/asdfasdfsdafas(20717): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6669)
I/asdfasdfsdafas(20717): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/asdfasdfsdafas(20717): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:493)
I/asdfasdfsdafas(20717): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:858)
I/asdfasdfsdafas(20717): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.Fragment" on path: DexPathList[[zip file "/data/app/com.example.asdfasdfsdafasd-f8viCtNfqNa5E-Tb-v5wcg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.asdfasdfsdafasd-f8viCtNfqNa5E-Tb-v5wcg==/lib/x86, /data/app/com.example.asdfasdfsdafasd-f8viCtNfqNa5E-Tb-v5wcg==/base.apk!/lib/x86, /system/lib]]
I/asdfasdfsdafas(20717): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
I/asdfasdfsdafas(20717): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String,
boolean) (ClassLoader.java:379)
I/asdfasdfsdafas(20717): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String)
(ClassLoader.java:312)
in AndroidManifest.xml
@hnvn 不知道为什么会这样,希望可以得到你的帮助谢谢了
Just importing the application with no functions being performed.
Here is the crash Log.
Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter run
exception
String: Exit code 1 from: C:\Users\YourFavouriteOreo\AppData\Local\Android\sdk\platform-tools\adb -s LGH86090aac5bf shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true com.example.cookbook/com.yalantis.ucrop.UCropActivity:
Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.cookbook/com.yalantis.ucrop.UCropActivity (has extras) }java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.RUN flg=0x30000000 cmp=com.example.cookbook/com.yalantis.ucrop.UCropActivity (has extras) } from null (pid=25887, uid=2000) not exported from uid 10337
at android.os.Parcel.readException(Parcel.java:1683)
at android.os.Parcel.readException(Parcel.java:1636)
at android.app.ActivityManagerProxy.startActivityAsUser(ActivityManagerNative.java:3177)
at com.android.commands.am.Am.runStart(Am.java:640)
at com.android.commands.am.Am.onRun(Am.java:388)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
at com.android.commands.am.Am.main(Am.java:121)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:262)#0 runCheckedAsync (package:flutter_tools/src/base/process.dart:251:5) <asynchronous suspension> #1 AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:440:34) <asynchronous suspension> #2 FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:287:54) <asynchronous suspension> #3 HotRunner.run (package:flutter_tools/src/run_hot.dart:262:39) <asynchronous suspension> #4 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:391:37) <asynchronous suspension> #5 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:372:18) #6 _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64) #7 _rootRunUnary (dart:async/zone.dart:1132:38) #8 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #9 _FutureListener.handleValue (dart:async/future_impl.dart:129:18) #10 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45) #11 Future._propagateToListeners (dart:async/future_impl.dart:671:32) #12 Future._complete (dart:async/future_impl.dart:476:7) #13 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #14 _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18) #15 _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13) #16 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart) #17 _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64) #18 _rootRunUnary (dart:async/zone.dart:1132:38) #19 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #20 _FutureListener.handleValue (dart:async/future_impl.dart:129:18) #21 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45) #22 Future._propagateToListeners (dart:async/future_impl.dart:671:32) #23 Future._complete (dart:async/future_impl.dart:476:7) #24 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #25 _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20) #26 _rootRun (dart:async/zone.dart:1124:13) #27 _CustomZone.run (dart:async/zone.dart:1021:19) #28 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23) #29 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #30 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #31 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13) #32 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
flutter doctor
[✓] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.345], locale en-US) • Flutter version 0.9.4 at C:\Users\YourFavouriteOreo\Documents\flutter • Framework revision f37c235c32 (5 weeks ago), 2018-09-25 17:45:40 -0400 • Engine revision 74625aed32 • Dart version 2.1.0-dev.5.0.flutter-a2eb050044 [✓] Android toolchain - develop for Android devices (Android SDK 28.0.0) • Android SDK at C:\Users\YourFavouriteOreo\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02) • All Android licenses accepted. [✓] Android Studio (version 3.1) • Android Studio at C:\Program Files\Android\Android Studio ✗ Flutter plugin not installed; this adds Flutter specific functionality. • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02) [!] IntelliJ IDEA Ultimate Edition (version 2018.2) • IntelliJ at E:\Program Files\JetBrains\IntelliJ IDEA 2018.2.5 ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [✓] VS Code, 64-bit edition (version 1.26.1) • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension version 2.19.0 [✓] Connected devices (1 available) • LG H860 • LGH86090aac5bf • android-arm64 • Android 7.0 (API 24) ! Doctor found issues in 1 category.
Resolving dependencies of Podfile
[!] CocoaPods could not find compatible versions for pod "TOCropViewController":
In Podfile:
image_cropper (from .symlinks/plugins/image_cropper/ios
) was resolved to 0.0.1, which depends on
TOCropViewController (~> 2.3.7)
None of your spec sources contain a spec satisfying the dependency: `TOCropViewController (~> 2.3.7)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
Hey there,
I am facing an issue with image crop plugin, whenever I select an image and click on crop, the app crashes with these logs.
D/EGL_emulation(25038): eglMakeCurrent: 0xe5d84780: ver 3 1 (tinfo 0xe5dff060)
D/EGL_emulation(25038): eglCreateContext: 0xe7c84500: maj 3 min 1 rcv 4
D/EGL_emulation(25038): eglMakeCurrent: 0xe7c84500: ver 3 1 (tinfo 0xe450ad10)
E/eglCodecCommon(25038): glUtilsParamSize: unknow param 0x000082da
E/eglCodecCommon(25038): glUtilsParamSize: unknow param 0x000082da
D/EGL_emulation(25038): eglMakeCurrent: 0xe5d84780: ver 3 1 (tinfo 0xe5dff060)
D/EGL_emulation(25038): eglMakeCurrent: 0xe7c84500: ver 3 1 (tinfo 0xe450adf0)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): Failed to handle method call
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.a3rdflix.menu/com.yalantis.ucrop.UCropActivity}; have you declared this activity in your AndroidManifest.xml?
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2005)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1673)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at android.app.Activity.startActivityForResult(Activity.java:4586)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at android.app.Activity.startActivityForResult(Activity.java:4544)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at com.yalantis.ucrop.UCrop.start(UCrop.java:138)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at com.yalantis.ucrop.UCrop.start(UCrop.java:128)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(ImageCropperDelegate.java:66)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(ImageCropperPlugin.java:36)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at android.os.MessageQueue.next(MessageQueue.java:326)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at android.os.Looper.loop(Looper.java:160)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at android.app.ActivityThread.main(ActivityThread.java:6669)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/MethodChannel#plugins.hunghd.vn/image_cropper(25038): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
D/AndroidRuntime(25038): Shutting down VM
E/AndroidRuntime(25038): FATAL EXCEPTION: main
E/AndroidRuntime(25038): Process: com.a3rdflix.menu, PID: 25038
E/AndroidRuntime(25038): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=69, result=0, data=null} to activity {com.a3rdflix.menu/com.a3rdflix.menu.MainActivity}: java.lang.IllegalStateException: Reply already submitted
E/AndroidRuntime(25038): at android.app.ActivityThread.deliverResults(ActivityThread.java:4360)
E/AndroidRuntime(25038): at android.app.ActivityThread.handleSendResult(ActivityThread.java:4402)
E/AndroidRuntime(25038): at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
E/AndroidRuntime(25038): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
E/AndroidRuntime(25038): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
E/AndroidRuntime(25038): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
E/AndroidRuntime(25038): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(25038): at android.os.Looper.loop(Looper.java:193)
E/AndroidRuntime(25038): at android.app.ActivityThread.main(ActivityThread.java:6669)
E/AndroidRuntime(25038): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(25038): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/AndroidRuntime(25038): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/AndroidRuntime(25038): Caused by: java.lang.IllegalStateException: Reply already submitted
E/AndroidRuntime(25038): at io.flutter.view.FlutterNativeView$1.reply(FlutterNativeView.java:174)
E/AndroidRuntime(25038): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:194)
E/AndroidRuntime(25038): at vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.onActivityResult(ImageCropperDelegate.java:81)
E/AndroidRuntime(25038): at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210)
E/AndroidRuntime(25038): at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139)
E/AndroidRuntime(25038): at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138)
E/AndroidRuntime(25038): at android.app.Activity.dispatchActivityResult(Activity.java:7454)
E/AndroidRuntime(25038): at android.app.ActivityThread.deliverResults(ActivityThread.java:4353)
E/AndroidRuntime(25038): ... 11 more
E/flutter (25038): [ERROR:flutter/shell/common/shell.cc(181)] Dart Error: Unhandled exception:
E/flutter (25038): PlatformException(error, Unable to find explicit activity class {com.a3rdflix.menu/com.yalantis.ucrop.UCropActivity}; have you declared this activity in your AndroidManifest.xml?, null)
E/flutter (25038): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:551:7)
E/flutter (25038): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:279:18)
E/flutter (25038): <asynchronous suspension>
E/flutter (25038): #2 ImageCropper.cropImage (package:image_cropper/image_cropper.dart:34:46)
E/flutter (25038): <asynchronous suspension>
E/flutter (25038): #3 _AnalysisPageState._cropImage (package:menu/AnalysisPage.dart:74:43)
E/flutter (25038): <asynchronous suspension>
E/flutter (25038): #4 _AnalysisPageState.build.<anonymous closure> (package:menu/AnalysisPage.dart:44:9)
E/flutter (25038): #5 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:503:14)
E/flutter (25038): #6 _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:558:30)
E/flutter (25038): #7 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)
E/flutter (25038): #8 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242:9)
E/flutter (25038): #9 TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:175:7)
E/flutter (25038): #10 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:315:9)
E/flutter (25038): #11 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73:12)
E/flutter (25038): #12 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:11)
E/flutter (25038): #13 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:143:19)
E/flutter (25038): #14 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22)
E/flutter (25038): #15 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7)
E/flutter (25038): #16 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7)
E/flutter (25038): #17 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7)
E/flutter (25038): #18 _invoke1 (dart:ui/hooks.dart:142:13)
E/flutter (25038): #19 _dispatchPointerDataPacket (dart:ui/hooks.dart:99:5)
I/Process (25038): Sending signal. PID: 25038 SIG: 9
Application finished.
When user take picture with my app I need to be send via mail. Currently my app works only portrait mode. If user takes picture I need to crop to landscape mode and send mail.
Currently cropped image send via mail become -45 anticlockwise.
how can I crop image automatically on landscape mode?
Hello!
I've upgraded to 1.0.2 and now I get this error when doing a pod install
:
[!] CocoaPods could not find compatible versions for pod "TOCropViewController":
In snapshot (Podfile.lock):
TOCropViewController (= 2.4.0, ~> 2.4.0)
In Podfile:
image_cropper (from `.symlinks/plugins/image_cropper/ios`) was resolved to 0.0.1, which depends on
TOCropViewController (~> 2.5.0)
Specs satisfying the `TOCropViewController (= 2.4.0, ~> 2.4.0), TOCropViewController (~> 2.5.0)` dependency were found, but they required a higher minimum deployment target.
1.0.1 works fine
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.35.1)
[✓] Connected device (1 available)
• No issues found!
image_cropper: ^1.0.2
Launching lib/main.dart on Pixel 2 XL in debug mode...
Built build/app/outputs/apk/debug/app-debug.apk.
I/com.example.ap(30041): Rejecting re-init on previously-failed class java.lang.Class<com.yalantis.ucrop.UCropFragment>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/Fragment;
I/com.example.ap(30041): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/com.example.ap(30041): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/com.example.ap(30041): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:42)
I/com.example.ap(30041): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/com.example.ap(30041): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/com.example.ap(30041): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/com.example.ap(30041): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/com.example.ap(30041): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/com.example.ap(30041): at void android.os.Looper.loop() (Looper.java:160)
I/com.example.ap(30041): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6718)
I/com.example.ap(30041): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/com.example.ap(30041): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:493)
I/com.example.ap(30041): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:858)
I/com.example.ap(30041): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.Fragment" on path: DexPathList[[zip file "/data/app/com.example.app--2mY6e9epGMEJ0lkKLX2fg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.app--2mY6e9epGMEJ0lkKLX2fg==/lib/arm64, /data/app/com.example.app--2mY6e9epGMEJ0lkKLX2fg==/base.apk!/lib/arm64-v8a, /system/lib64]]
I/com.example.ap(30041): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
I/com.example.ap(30041): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/com.example.ap(30041): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/com.example.ap(30041): at com.yalantis.ucrop.UCrop com.yalantis.ucrop.UCrop.of(android.net.Uri, android.net.Uri) (UCrop.java:64)
I/com.example.ap(30041): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperDelegate.startCrop(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperDelegate.java:84)
I/com.example.ap(30041): at void vn.hunghd.flutter.plugins.imagecropper.ImageCropperPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (ImageCropperPlugin.java:42)
I/com.example.ap(30041): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:201)
I/com.example.ap(30041): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:88)
I/com.example.ap(30041): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:219)
I/com.example.ap(30041): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2)
I/com.example.ap(30041): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:326)
I/com.example.ap(30041): at void android.os.Looper.loop() (Looper.java:160)
I/com.example.ap(30041): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6718)
I/com.example.ap(30041): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/com.example.ap(30041): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:493)
I/com.example.ap(30041): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:858)
...
The parameter statusbarColor is not working, is it possible to change the statusbarColor?
The colors of the buttons at the bottom are always orange.
(only toolbarColor is working to edit the color of the header)
I cloned the repo and tried to build the example as is.
I got the following error.
`Running "flutter packages get" in example... 7.3s
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... 1.1s
Resolving dependencies...
FAILURE: Build failed with an exception.
Where:
Build file 'D:\Documents\Applications\Flutter\flutter_image_cropper\example\android\app\build.gradle' line: 16
What went wrong:
A problem occurred evaluating project ':app'.
versionCode not found. Define flutter.versionCode in the local.properties file.
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 2s
Command: D:\Documents\Applications\Flutter\flutter_image_cropper\example\android\gradlew.bat app:properties
Please review your Gradle project setup in the android/ folder.`
F:\xxx\xxx\xxxx\app\build\app\intermediates\manifests\full\debug\AndroidManifest.xml:57: AAPT: error: resource style/Theme.AppCompat.Light.NoActionBar (aka com.bk.xxxx:style/Theme.AppCompat.Light.NoActionBar) not found.
-> Installing TOCropViewController (2.3.8)
> Git download
> Git download
$ /usr/bin/git clone https://github.com/TimOliver/TOCropViewController.git /var/folders/gl/p1rrjvc56fnd_w453jvnjwp40000gp/T/d20190114-1543-1oij67u --template= --single-branch --depth 1 --branch 2.3.8
[!] Error installing TOCropViewController
[!] /usr/bin/git clone https://github.com/TimOliver/TOCropViewController.git /var/folders/gl/p1rrjvc56fnd_w453jvnjwp40000gp/T/d20190114-1543-1oij67u --template= --single-branch --depth 1 --branch 2.3.8
Cloning into '/var/folders/gl/p1rrjvc56fnd_w453jvnjwp40000gp/T/d20190114-1543-1oij67u'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader.rb:142:in `rescue in execute_command'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader.rb:139:in `execute_command'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-downloader-1.2.2/lib/cocoapods-downloader/base.rb:154:in `block in executable'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-downloader-1.2.2/lib/cocoapods-downloader/git.rb:79:in `block in clone'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader.rb:173:in `block in ui_sub_action'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader.rb:172:in `ui_sub_action'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-downloader-1.2.2/lib/cocoapods-downloader/git.rb:77:in `clone'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-downloader-1.2.2/lib/cocoapods-downloader/git.rb:45:in `download!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-downloader-1.2.2/lib/cocoapods-downloader/base.rb:82:in `block in download'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader.rb:157:in `block in ui_action'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader.rb:156:in `ui_action'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-downloader-1.2.2/lib/cocoapods-downloader/base.rb:80:in `download'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader.rb:108:in `download_source'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader.rb:75:in `download_request'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader/cache.rb:171:in `download'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader/cache.rb:154:in `block in uncached_pod'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader/cache.rb:181:in `in_tmpdir'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader/cache.rb:153:in `uncached_pod'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader/cache.rb:33:in `download_pod'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/downloader.rb:42:in `download'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/pod_source_installer.rb:121:in `download_source'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/pod_source_installer.rb:60:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:374:in `install_source_of_pod'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:339:in `block (2 levels) in install_pod_sources'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:85:in `titled_section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:338:in `block in install_pod_sources'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:321:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:321:in `install_pod_sources'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:164:in `block in download_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:162:in `download_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:117:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
Error output from CocoaPods:
↳
Cloning into '/var/folders/gl/p1rrjvc56fnd_w453jvnjwp40000gp/T/d20190114-1543-1oij67u'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
[!] Automatically assigning platform `ios` with version `10.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
pubspec.yaml
image_picker: ^0.4.10
image_cropper: ^0.0.6
FAILURE: Build failed with an exception.
Android dependency 'com.android.support:support-core-ui' has different version for the compile (27.1.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution
It would be great to be able to hide the bottom controls.
I had a look into UCropActivity and found out that this is supported by UCrop with the Intent Extra called com.yalantis.ucrop.HideBottomControls
. There should be an additional optional parameter in ImageCropper.cropImage()
which allows exactly this.
I installed your plugin in .yaml and submitted it to the git management repository. When my colleague pulled the new project, the first time I compiled the error, the error message:
/////////////////*******/////////////////
KevinOmg:blingabc_student_app xingkunkun$ flutter run
Launching lib/main.dart on iPhone 7 Plus in debug mode...
Compiler message:
file:///Users/xingkunkun/.pub-cache/hosted/pub.flutter-io.cn/orientation-1.0.4/lib/orientation.dart:17:28: Error:
Expected 0 type arguments.
await _methodChannel.invokeMethod(
^
file:///Users/xingkunkun/.pub-cache/hosted/pub.flutter-io.cn/orientation-1.0.4/lib/orientation.dart:28:26: Error:
Expected 0 type arguments.
await _methodChannel.invokeMethod(
^
file:///Users/xingkunkun/.pub-cache/hosted/pub.flutter-io.cn/orientation-1.0.4/lib/orientation.dart:35:26: Error:
Expected 0 type arguments.
await _methodChannel.invokeMethod(
^
Compiler failed on /Users/xingkunkun/Desktop/BBB/blingabc_student_app/lib/main.dart
Error launching application on iPhone 7 Plus.
/////////////////*******/////////////////
But when trying to run again, the error no longer exists, and everything is ok, can you tell me why?
I am a beginner working with Flutter but have coded up a half decent app protoype. I am keen to use the image cropper and would like to run your example. I can't get it to run in vs-code though.
I've tried copying the example folder contents into a new root folder but am getting all sorts of errors. Any tips so I can just quickly try it out?
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.