Yalantis / uCrop

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

NumberFormatException: For input string: "raw:/storage/emulated/0/Download/ic_launcher.png" #386

Closed UltramanTIGA closed 6 years ago

UltramanTIGA commented 6 years ago

I choose a picture from download folder to crop,it crash and report a error in FileUtils class line 158:

java.lang.NumberFormatException: For input string: "raw:/storage/emulated/0/Download/ic_launcher.png"

I search issues about this question,I found a way that update okhttp3 and appcompact version to solve.But I check my project,the okhttp version is 3.8.1,and appcompact-v7 version is 26.1.0,they are all new version,but the question is still alive.

In case,the system version I test is Oreo(8.0)

pBalakris commented 6 years ago

Here is the solution: https://github.com/Yalantis/uCrop/issues/318

Legementarion commented 6 years ago

Fixed at last version of Ucrop 2.2.2