nguyenhoanglam / ImagePicker

A customizable library for selecting images on the device.
Apache License 2.0
598 stars 158 forks source link

error: package com.nguyenhoanglam.imagepicker.activity does not exist #126

Closed gcatak closed 4 years ago

gcatak commented 4 years ago

It gives this error in build time.

error: package com.nguyenhoanglam.imagepicker.activity does not exist

How can I solve it?

gcatak commented 4 years ago

Any answer?

nguyenhoanglam commented 4 years ago

@gcatak Did you completely follow the installation guide step by step?

gcatak commented 4 years ago

Yes of course, I added glide library to gradle files. Then it gives this error. Additionally, I migrated to AndroidX There was no problem before change.

gcatak commented 4 years ago

Could you check this, please?

https://stackoverflow.com/questions/63204640/error-package-com-nguyenhoanglam-imagepicker-activity-does-not-exist

My question in SO.

nguyenhoanglam commented 4 years ago

I suggest you to do below step:

gcatak commented 4 years ago
import com.nguyenhoanglam.imagepicker.activity.ImagePicker;
import com.nguyenhoanglam.imagepicker.activity.ImagePickerActivity;

Problematic import statements in my code. Is the usage correct?

It gives this error:

https://i.ibb.co/C7DgcRh/Ekran-Resmi-2020-08-07-14-31-32.png

nguyenhoanglam commented 4 years ago

Maybe your import path is outdate. The two import path should be here https://github.com/nguyenhoanglam/ImagePicker/tree/master/imagepicker/src/main/java/com/nguyenhoanglam/imagepicker/ui/imagepicker

com.nguyenhoanglam.imagepicker.ui.imagepicker.ImagePicker com.nguyenhoanglam.imagepicker.ui.imagepicker.ImagePickerActivity

gcatak commented 4 years ago

I am using Java, not Kotlin. Should I use this library?

nguyenhoanglam commented 4 years ago

This lib works well with Java project. You can use it without any problem!

gcatak commented 4 years ago

I changed my gradle files to this library.

https://github.com/esafirm/android-image-picker

Now, it is working without any problem.