Comments (12)
Are you testing on Samsung Android 10? Are you using the latest version (1.4 0 or 1.3.3) of this library?
from materialratingbar.
Yes, I have to use Samsung Android 10 and use latest version of library is 1.4.0
from materialratingbar.
Can you provide more detailed stacktrace? There should be some more lines following it. Ideally something that contains the materialratingbar
package will help a lot.
from materialratingbar.
1)InflateException
->Fatal Exception: android.view.InflateException: Binary XML file line #120 in com.kraven:layout/test: Binary XML file line #120 in com.test:layout/test: Error inflating class me.zhanghai.android.materialratingbar.MaterialRatingBar
2)InvocationTargetException
->Caused by java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Constructor.java)
at java.lang.reflect.Constructor.newInstance + 343(Constructor.java:343)
at android.view.LayoutInflater.createView + 854(LayoutInflater.java:854)
at android.view.LayoutInflater.createViewFromTag + 1006(LayoutInflater.java:1006)
at android.view.LayoutInflater.createViewFromTag + 961(LayoutInflater.java:961)
at android.view.LayoutInflater.rInflate + 1123(LayoutInflater.java:1123)
at android.view.LayoutInflater.rInflateChildren + 1084(LayoutInflater.java:1084)
at android.view.LayoutInflater.rInflate + 1126(LayoutInflater.java:1126)
at android.view.LayoutInflater.rInflateChildren + 1084(LayoutInflater.java:1084)
at android.view.LayoutInflater.rInflate + 1126(LayoutInflater.java:1126)
at android.view.LayoutInflater.rInflateChildren + 1084(LayoutInflater.java:1084)
at android.view.LayoutInflater.rInflate + 1126(LayoutInflater.java:1126)
at android.view.LayoutInflater.rInflateChildren + 1084(LayoutInflater.java:1084)
at android.view.LayoutInflater.rInflate + 1126(LayoutInflater.java:1126)
at android.view.LayoutInflater.rInflateChildren + 1084(LayoutInflater.java:1084)
at android.view.LayoutInflater.rInflate + 1126(LayoutInflater.java:1126)
at android.view.LayoutInflater.rInflateChildren + 1084(LayoutInflater.java:1084)
at android.view.LayoutInflater.inflate + 682(LayoutInflater.java:682)
at android.view.LayoutInflater.inflate + 534(LayoutInflater.java:534)
at com.kraven.ui.base.BaseFragment.onCreateView + 66(BaseFragment.kt:66)
at androidx.fragment.app.Fragment.performCreateView + 2600(Fragment.java:2600)
at androidx.fragment.app.FragmentManagerImpl.moveToState + 881(FragmentManagerImpl.java:881)
at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState + 1238(FragmentManagerImpl.java:1238)
at androidx.fragment.app.FragmentManagerImpl.moveToState + 1303(FragmentManagerImpl.java:1303)
at androidx.fragment.app.BackStackRecord.executeOps + 439(BackStackRecord.java:439)
at androidx.fragment.app.FragmentManagerImpl.executeOps + 2079(FragmentManagerImpl.java:2079)
at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether + 1869(FragmentManagerImpl.java:1869)
at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute + 1824(FragmentManagerImpl.java:1824)
at androidx.fragment.app.FragmentManagerImpl.execPendingActions + 1727(FragmentManagerImpl.java:1727)
at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange + 2663(FragmentManagerImpl.java:2663)
at androidx.fragment.app.FragmentManagerImpl.dispatchActivityCreated + 2613(FragmentManagerImpl.java:2613)
at androidx.fragment.app.FragmentController.dispatchActivityCreated + 246(FragmentController.java:246)
at androidx.fragment.app.FragmentActivity.onStart + 542(FragmentActivity.java:542)
at androidx.appcompat.app.AppCompatActivity.onStart + 201(AppCompatActivity.java:201)
at android.app.Instrumentation.callActivityOnStart + 1433(Instrumentation.java:1433)
at android.app.Activity.performStart + 8004(Activity.java:8004)
at android.app.ActivityThread.handleStartActivity + 3471(ActivityThread.java:3471)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence + 221(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath + 201(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState + 173(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute + 97(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage + 2146(ActivityThread.java:2146)
at android.os.Handler.dispatchMessage + 107(Handler.java:107)
at android.os.Looper.loop + 237(Looper.java:237)
at android.app.ActivityThread.main + 7762(ActivityThread.java:7762)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 493(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main + 1047(ZygoteInit.java:1047)
3)NullPointerException
->Caused by java.lang.NullPointerException: Attempt to read from field 'android.content.res.ColorStateList me.zhanghai.android.materialratingbar.MaterialRatingBar$TintInfo.mProgressTintList' on a null object reference
at me.zhanghai.android.materialratingbar.MaterialRatingBar.getSupportProgressTintList + 315(MaterialRatingBar.java:315)
at me.zhanghai.android.materialratingbar.MaterialRatingBar.getProgressTintList + 156(MaterialRatingBar.java:156)
at android.widget.AbsSeekBar. + 245(AbsSeekBar.java:245)
at android.widget.RatingBar. + 92(RatingBar.java:92)
at android.widget.RatingBar. + 88(RatingBar.java:88)
at android.widget.RatingBar. + 124(RatingBar.java:124)
at me.zhanghai.android.materialratingbar.MaterialRatingBar. + 44(MaterialRatingBar.java:44)
at java.lang.reflect.Constructor.newInstance0(Constructor.java)
at java.lang.reflect.Constructor.newInstance + 343(Constructor.java:343)
at android.view.LayoutInflater.createView + 854(LayoutInflater.java:854)
at android.view.LayoutInflater.createViewFromTag + 1006(LayoutInflater.java:1006)
at android.view.LayoutInflater.createViewFromTag + 961(LayoutInflater.java:961)
at android.view.LayoutInflater.rInflate + 1123(LayoutInflater.java:1123)
at android.view.LayoutInflater.rInflateChildren + 1084(LayoutInflater.java:1084)
at android.view.LayoutInflater.rInflate + 1126(LayoutInflater.java:1126)
at android.view.LayoutInflater.rInflateChildren + 1084(LayoutInflater.java:1084)
at android.view.LayoutInflater.rInflate + 1126(LayoutInflater.java:1126)
at android.view.LayoutInflater.rInflateChildren + 1084(LayoutInflater.java:1084)
at android.view.LayoutInflater.rInflate + 1126(LayoutInflater.java:1126)
at android.view.LayoutInflater.rInflateChildren + 1084(LayoutInflater.java:1084)
at android.view.LayoutInflater.rInflate + 1126(LayoutInflater.java:1126)
at android.view.LayoutInflater.rInflateChildren + 1084(LayoutInflater.java:1084)
at android.view.LayoutInflater.rInflate + 1126(LayoutInflater.java:1126)
at android.view.LayoutInflater.rInflateChildren + 1084(LayoutInflater.java:1084)
at android.view.LayoutInflater.inflate + 682(LayoutInflater.java:682)
at android.view.LayoutInflater.inflate + 534(LayoutInflater.java:534)
at com.kraven.ui.base.BaseFragment.onCreateView + 66(BaseFragment.kt:66)
at androidx.fragment.app.Fragment.performCreateView + 2600(Fragment.java:2600)
at androidx.fragment.app.FragmentManagerImpl.moveToState + 881(FragmentManagerImpl.java:881)
at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState + 1238(FragmentManagerImpl.java:1238)
at androidx.fragment.app.FragmentManagerImpl.moveToState + 1303(FragmentManagerImpl.java:1303)
at androidx.fragment.app.BackStackRecord.executeOps + 439(BackStackRecord.java:439)
at androidx.fragment.app.FragmentManagerImpl.executeOps + 2079(FragmentManagerImpl.java:2079)
at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether + 1869(FragmentManagerImpl.java:1869)
at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute + 1824(FragmentManagerImpl.java:1824)
at androidx.fragment.app.FragmentManagerImpl.execPendingActions + 1727(FragmentManagerImpl.java:1727)
at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange + 2663(FragmentManagerImpl.java:2663)
at androidx.fragment.app.FragmentManagerImpl.dispatchActivityCreated + 2613(FragmentManagerImpl.java:2613)
at androidx.fragment.app.FragmentController.dispatchActivityCreated + 246(FragmentController.java:246)
at androidx.fragment.app.FragmentActivity.onStart + 542(FragmentActivity.java:542)
at androidx.appcompat.app.AppCompatActivity.onStart + 201(AppCompatActivity.java:201)
at android.app.Instrumentation.callActivityOnStart + 1433(Instrumentation.java:1433)
at android.app.Activity.performStart + 8004(Activity.java:8004)
at android.app.ActivityThread.handleStartActivity + 3471(ActivityThread.java:3471)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence + 221(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath + 201(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState + 173(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute + 97(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage + 2146(ActivityThread.java:2146)
at android.os.Handler.dispatchMessage + 107(Handler.java:107)
at android.os.Looper.loop + 237(Looper.java:237)
at android.app.ActivityThread.main + 7762(ActivityThread.java:7762)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 493(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main + 1047(ZygoteInit.java:1047)
from materialratingbar.
yes i got the same issue in S10 plus also,
from materialratingbar.
I was getting the same error with 1.3.2 but updating to 1.4.0 fixed it for me.
from materialratingbar.
The unfortunate thing though is the app I work on broke when Samsung released the Android 10 update for Galaxy S10s and it was because of this library. The fallout has hit me hard because of this so I would actually recommend ditching this library and going back to the regular framework RatingBar.
from materialratingbar.
This is the same stacktrace as in #63 and updating to 1.3.3
or 1.4.0
will include the fix (1005cd3). Please confirm that the crash and stacktrace is actually reproduced with these two versions, because the fix was specifically working around this NPE.
NullPointerException
->Caused by java.lang.NullPointerException: Attempt to read from field 'android.content.res.ColorStateList me.zhanghai.android.materialratingbar.MaterialRatingBar$TintInfo.mProgressTintList' on a null object reference
at me.zhanghai.android.materialratingbar.MaterialRatingBar.getSupportProgressTintList + 315(MaterialRatingBar.java:315)
at me.zhanghai.android.materialratingbar.MaterialRatingBar.getProgressTintList + 156(MaterialRatingBar.java:156)
at android.widget.AbsSeekBar. + 245(AbsSeekBar.java:245)
at android.widget.RatingBar. + 92(RatingBar.java:92)
at android.widget.RatingBar. + 88(RatingBar.java:88)
at android.widget.RatingBar. + 124(RatingBar.java:124)
at me.zhanghai.android.materialratingbar.MaterialRatingBar. + 44(MaterialRatingBar.java:44)
at java.lang.reflect.Constructor.newInstance0(Constructor.java)
at java.lang.reflect.Constructor.newInstance + 343(Constructor.java:343)
at android.view.LayoutInflater.createView + 854(LayoutInflater.java:854)
from materialratingbar.
Are u using Samsung Galaxy S10 ?
from materialratingbar.
Are u using Samsung Galaxy S10 ?
Yes
from materialratingbar.
Are u using Samsung Galaxy S10 ?
But my issue is resolved when I used 1.4.0 library.
from materialratingbar.
Thanks. I just wanna to know, whether this issue is applied to all Android 10, or only Samsung Galaxy S10's Android 10.
May I know do you only encounter this issue, after you have upgrade Android 9 to Android 10, in Samsung Galaxy S10?
Recently, I encounter other type of crash issue (Not related to MaterialRatingBar library), which only happen in Samsung Galaxy S10 Android 10.
from materialratingbar.
Related Issues (20)
- When isIndicator="true" no more floating values HOT 1
- stepSize=0.1 rating=0.1不显示,这属于bug嘛? HOT 2
- Fill Stars Background if isIndicator=true HOT 5
- Widget.MaterialRatingBar.RatingBar.Small doesn't make the star icon smaller HOT 2
- Crash on Android 10 & Samsung HOT 3
- Migrate to androidx HOT 1
- 1.4.0 artifact not aavilable HOT 1
- Error inflating MaterialRatingBar on Android 10 HOT 1
- Is there any way I can set the stars/rating back to zero?
- Crash on Android 10 HOT 1
- Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. HOT 1
- App is Crashing on Android 10 Samsung devices HOT 2
- Couldn't fully drag to remove rating HOT 5
- Question about setOnRatingChangeListener HOT 1
- half star is not showing correctly when isIndicator is true HOT 4
- If we click between the two stars, both star will get clicked HOT 8
- MaterialRatingDrawable Crash HOT 15
- how to disable the ontouch event ? HOT 1
- Verification failed on class me.zhanghai.android.materialratingbar.ClipDrawableCompat
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from materialratingbar.