-
-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App is crashing in Android 4.3.1 #67
Comments
Thank you for reporting. This crash is unexpected. Following details will help to find and fix the issue.
Try: |
Kindly reopen the issue with required details if this crash is frequent. |
yes , it is frequent , I am using com.hbb20:ccp:1.7.3 , it happens in old devices having 4.3.1 , 4.1.1 |
I cannot open this issue as owner of repo has closed this issue . |
Oops..Can you please update to the latest version of library. Right now it
is 2.0.1.
If you still face problem, report crash log (newer) here, I will re-open
the issue and solve it.
…On Thu, 20 Jul 2017 at 11:58, Ankit ***@***.***> wrote:
I cannot open this issue as owner of repo has closed this issue .
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEsN6BUHx2Xl_UHtl42Y01bkWuQxCI1Yks5sPvOggaJpZM4OHqLd>
.
|
I am still facing this issue even after updating lib to latest version |
Oh, I will re-open the issue.
Can you please post the crash report (for latest library version) and your
gradle file to check configuration.
Thanks.
…On Tue, 8 Aug 2017 at 23:54, Ankit ***@***.***> wrote:
I am still facing this issue even after updating lib to latest version
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEsN6M8YExA6vn0fDynDqTrDMN4lYh7Rks5sWTt9gaJpZM4OHqLd>
.
|
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pagalguy.prepathon/com.pagalguy.prepathon.domainV1.login.SignupUsingPassword}: android.view.InflateException: Binary XML file line #63: Error inflating class com.hbb20.CountryCodePicker |
it's happening because of |
@ankitPagalGuy, I could not figure out the exact problem here because of different problems in different logs. I also tried to reproduce the problem in physical devices and emulators with the android version you mentioned but could not reproduce it. But tried to fix the probable problem in version 2.0.3. Please update the library version in your project and then sync and rebuild project. Please comment the result. |
I was having the same issue, I had to define the following in my styles to make it work (version 2.0.3) ?android:attr/selectableItemBackground |
@dahool, what exactly you did? |
If I used CountryCodePicker in my Activity and set the parent theme of Activity to Theme.AppCompat.Light.DarkActionBar, it is no problem. But if I set the parent theme to android:Theme.Holo.Light.DarkActionBar , it crashed by Error inflating class com.hbb20.CountryCodePicker ..... |
@hbb20 I created the attribute ?android:attr/selectableItemBackground in my styles file |
Looks like it crashes when it's unable to find selectable drawables. Which is the case in devices running on lower Android version. |
Same problem when used parent theme of Activity to Theme.Holo.Light.DarkActionBar. java.lang.RuntimeException: Unable to start activity ComponentInfo{ru.cdc.android.optimum/ru.cdc.android.optimum.ui.PhoneVerificationActivity}: android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class com.hbb20.CountryCodePicker |
@hbb20 any ideas? |
One possible problem I can think of is, If possible, can you try this and report back the result?
Please post back the result... |
@hbb20 download all layout files (4) and removed lines with "?attr". Its work for me, thx |
I have applied the possible fix in v2.1.1. Please try this new version and comment if the problem is still there. I will reopen the issue. |
@hbb20 I have tried the latest version 2.1.2, but still getting the same crash on 4.3.1(kitkat devices) Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f0802ed a=-1 r=0x7f0802ed} |
Most probably you are using If you do not want change your Theme parent, here is a workaround:
|
I've been reported this Exception causing a crash on one of my user.
I'm using library v 2.1.5. The app is running on Android 5.1 |
Please notice "com.rilixtech.CountryCodeAdapter" (4th line) in the crash report. It means you are not using this library's Country Code Picker. Domain for this library is hbb20.com and not rilixtech.com .If you were using this CCP then you would not get this crash in the first place. We take issues seriously and fix them as soon as possible. This problem is already fixed for this library. Please look closely at integration guide. It's |
@raasesh, I tried to reproduce it with an emulator running on version 4.4.x but could not reproduce. However, I tried to fix possible issues. But I want your help to check if it is a real fix. are the version I uploaded with different possible fixes. I want you to try these versions where v2.2.7 was causing a crash. Please list which of above 4 worked and which one did not work. @raasesh, please post on #296 if you will be able to test this. I appreciate your help. |
@hbb20 I have a crash on production. I'm using the latest version com.hbb20:ccp:2.3.7 Fatal Exception: android.view.InflateException Caused by android.view.InflateException Caused by android.content.res.Resources$NotFoundException android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:763) |
Caused by android.view.InflateException: Binary XML file line #63: Error inflating class com.hbb20.CountryCodePicker
at android.view.LayoutInflater.createView(LayoutInflater.java:613)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.pagalguy.prepathon.domainV1.login.SignupUsingPassword.onCreate(SignupUsingPassword.java:73)
at android.app.Activity.performCreate(Activity.java:5252)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4954)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:565)
at dalvik.system.NativeStart.main(NativeStart.java)
Caused by java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Constructor.java)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.pagalguy.prepathon.domainV1.login.SignupUsingPassword.onCreate(SignupUsingPassword.java:73)
at android.app.Activity.performCreate(Activity.java:5252)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4954)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:565)
at dalvik.system.NativeStart.main(NativeStart.java)
Caused by android.view.InflateException: Binary XML file line #52: Error inflating class ImageView
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at com.hbb20.CountryCodePicker.init(CountryCodePicker.java:108)
at com.hbb20.CountryCodePicker.(CountryCodePicker.java:96)
at java.lang.reflect.Constructor.constructNative(Constructor.java)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.pagalguy.prepathon.domainV1.login.SignupUsingPassword.onCreate(SignupUsingPassword.java:73)
at android.app.Activity.performCreate(Activity.java:5252)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4954)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:565)
at dalvik.system.NativeStart.main(NativeStart.java)
Caused by android.content.res.Resources$NotFoundException: File res/drawable/ic_arrow_drop_down_black_24dp.xml from drawable resource ID #0x7f020213
at android.content.res.Resources.loadDrawable(Resources.java:1957)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.widget.ImageView.(ImageView.java:120)
at android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:60)
at android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:56)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1021)
at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1080)
at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:47)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:675)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at com.hbb20.CountryCodePicker.init(CountryCodePicker.java:108)
at com.hbb20.CountryCodePicker.(CountryCodePicker.java:96)
at java.lang.reflect.Constructor.constructNative(Constructor.java)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.pagalguy.prepathon.domainV1.login.SignupUsingPassword.onCreate(SignupUsingPassword.java:73)
at android.app.Activity.performCreate(Activity.java:5252)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4954)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:565)
at dalvik.system.NativeStart.main(NativeStart.java)
Caused by org.xmlpull.v1.XmlPullParserException: Binary XML file line #1: invalid drawable tag vector
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:877)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:818)
at android.content.res.Resources.loadDrawable(Resources.java:1954)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.widget.ImageView.(ImageView.java:120)
at android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:60)
at android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:56)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1021)
at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1080)
at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:47)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:675)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at com.hbb20.CountryCodePicker.init(CountryCodePicker.java:108)
at com.hbb20.CountryCodePicker.(CountryCodePicker.java:96)
at java.lang.reflect.Constructor.constructNative(Constructor.java)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.pagalguy.prepathon.domainV1.login.SignupUsingPassword.onCreate(SignupUsingPassword.java:73)
at android.app.Activity.performCreate(Activity.java:5252)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4954)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:565)
at dalvik.system.NativeStart.main(NativeStart.java)
The text was updated successfully, but these errors were encountered: