Yalantis / uCrop

Image Cropping Library for Android
https://yalantis.com/blog/introducing-ucrop-our-own-image-cropping-library-for-android/
11.89k stars 2.16k forks source link

Image is not cropped #750

Open rajput-abdullah opened 3 years ago

rajput-abdullah commented 3 years ago

PlatformException(error, Unable to find explicit activity class {com.example.documentmanagement/com.yalantis.ucrop.UCropActivity}; have you declared this activity in your AndroidManifest.xml?, null, android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.documentmanagement/com.yalantis.ucrop.UCropActivity}; have you declared this activity in your AndroidManifest.xml?

Drjacky commented 3 years ago

Add this to your AndroidManifest.xml:

<activity
            android:name="com.yalantis.ucrop.UCropActivity"
            android:screenOrientation="portrait"
            android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
rajput-abdullah commented 3 years ago

Already added.

On Sat, May 1, 2021 at 9:20 PM Hossein Abbasi @.***> wrote:

Add this to your AndroidManifest.xml:

<activity android:name="com.yalantis.ucrop.UCropActivity" android:screenOrientation="portrait" @.***/Theme.AppCompat.Light.NoActionBar" />

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Yalantis/uCrop/issues/750#issuecomment-830656977, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZ373PUGWEXNLTEAQGY423TLQS5RANCNFSM43UHXRQA .

Drjacky commented 3 years ago

Check the proguard. you need:

-dontwarn com.yalantis.ucrop**
-keep class com.yalantis.ucrop** { *; }
-keep interface com.yalantis.ucrop** { *; }