jhansireddy / AndroidScannerDemo

ScanLibrary is an android document scanning library built on top of OpenCV, using the app you will be able to select the exact edges and crop the document accordingly from the selected 4 edges and change the perspective transformation of the cropped image.
MIT License
1.07k stars 472 forks source link

Package android.support.v4.content does not exist #111

Open prasadtodkari opened 4 years ago

parrotthead commented 4 years ago

This happens when you are using compile SDK version >=29 . Migrating the project to AndroidX should help. To migrate Right click on scanLibrary then go to Refractor and then click on Migrate to AndroidX. Two changes should show up, click Do Refractor and done. That should fix it.

prasadtodkari commented 4 years ago

Thanks a ton for your reply.... I will follow the same.

thanks again for your project please do let us know you have any website or your subscriptions for the newsletter so we'll follow you on the same.

On Sat, 22 Feb 2020 at 16:08, parrotthead notifications@github.com wrote:

This happens when you are using compile SDK version >=29 . Migrating the project to AndroidX should help. To migrate Right click on scanLibrary then go to Refractor and then click on Migrate to AndroidX. Two changes should show up, click Do Refractor and done. That should fix it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jhansireddy/AndroidScannerDemo/issues/111?email_source=notifications&email_token=ANFA3PGOB6CBIEP2MRB44JDRED6CTA5CNFSM4KBLSQGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMU44EI#issuecomment-589942289, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANFA3PBDZGHE5J37V6C3OILRED6CTANCNFSM4KBLSQGA .

--

deepakbhavsar43 commented 4 years ago

Instead of "import android.support.v4.content.FileProvider;" try importing "import androidx.core.content.FileProvider;" in this file "...\scanlibrary\src\main\AndroidManifest.xml"

If this doesn't work. try another solution from below given link: https://stackoverflow.com/questions/48534293/android-support-v4-content-fileprovider-not-found/60573907#60573907