jaydeepw / poly-picker

Android library project for providing multiple image selection from the device.
406 stars 114 forks source link

Android Studio can't import this lib #14

Closed whynogo closed 9 years ago

whynogo commented 9 years ago

Hi, I really like your great job of this lib , when I try to import the lib to Android Studio(0.8.11) which does show import successfully, but I can't access ImagePickerActivity in code anyway. Then I try to import aar file directly, it does not work ,too. Any hint on that?

Thanks.

whynogo commented 9 years ago

done after adding: compile project(":libPolyPicker") manually

jaydeepw commented 9 years ago

Now the library is available as a depedency on Maven Central. Please refer for more details.

https://github.com/jaydeepw/poly-picker#download

sunil08 commented 9 years ago

Hello sir, Thanks for posting this awesome library. I am new to android studio i don't know hot to import this library into my project. While adding it shows "Configuration to name 'default not found.'"

Please guide me to import this library into project. which folder should i copy polypicker or polypickerdemo and where.

jaydeepw commented 9 years ago

@sunil08 You dont have to copy any folder. Just add gradle dependecny to you build.gradle file and you shall be ready to use this library right away.

sunil08 commented 9 years ago

Thanks for help. I did all as told and project was ready to launch. But on clicking any button on main activity crashes the application.Before that an error was thrown.

On installing project...

E/Trace﹕ error opening trace file: No such file or directory (2)

After Button click....

com.example.sunil.pickimg E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sunil.pickimg/nl.changer.polypicker.ImagePickerActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2211) at android.app.ActivityThread.access$600(ActivityThread.java:149) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1300) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:153) at android.app.ActivityThread.main(ActivityThread.java:4987) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at nl.changer.polypicker.ImagePickerActivity.setupActionBar(ImagePickerActivity.java:104) at nl.changer.polypicker.ImagePickerActivity.onCreate(ImagePickerActivity.java:83) at android.app.Activity.performCreate(Activity.java:5020) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2211)             at android.app.ActivityThread.access$600(ActivityThread.java:149)             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1300)             at android.os.Handler.dispatchMessage(Handler.java:99)             at android.os.Looper.loop(Looper.java:153)             at android.app.ActivityThread.main(ActivityThread.java:4987)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:511)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)             at dalvik.system.NativeStart.main(Native Method)

jaydeepw commented 9 years ago

Refer to my comment on this issue https://github.com/jaydeepw/poly-picker/issues/28

sunil08 commented 9 years ago

Thankyou sir the project is running but in the main activity .. Parcelable[] parcelableUris = intent.getParcelableArrayExtra(ImagePickerActivity.EXTRA_IMAGE_URIS);

jaydeepw commented 9 years ago

Thats really weird. Can you help me reproduce this issue?

sunil08 commented 9 years ago

i think sending uri from ImagePickerActivity into arraylist would be better option.

jaydeepw commented 9 years ago

Yes, true. I have forked this project from another similar one. I could not manage to simplify that part last time when I worked on it. Maybe you should provide a PR with something like that?

vishalwt commented 8 years ago

Hello, my app is crash in marshmallow,poly picker not working in marshmallow ,how can i resolve this please help me it is possible or not?