Software rendering doesn't support hardware bitmaps' from thread main
- IntelliJ IDEA 2021.2.3 (Ultimate Edition)
- Kotlin: 212-1.5.31-release-546-IJ4638.7
- Samsung SM-G955F - ANDROID 9
- compileSdkVersion 30 buildToolsVersion "31.0.0" defaultConfig { applicationId "xxx.xxx.xxxx" minSdkVersion 23 targetSdkVersion 29
- implementation 'com.elconfidencial.bubbleshowcase:bubbleshowcase:1.3.1'
- BubbleShowCaseBuilder(this) //Activity instance .title("Swipe to refresh content.") .targetView(imageView) //View to point out .backgroundColor(Color.GREEN) //Bubble background color .textColor(Color.BLACK) //Bubble Text color .titleTextSize(17) //Title text size in SP (default value 16sp) .descriptionTextSize(15) //Subtitle text size in SP (default value 14sp) .show() in OnCrate in Activity with only an InageView.
What expected: BubbleShow show in
What obtain: exception catch:'java.lang.IllegalArgumentException: Software rendering doesn't support hardware bitmaps' from thread
Full: 2021-10-28 15:13:16.932 15137-15382/xxx.xx.xxx E/HMSSDK_HMSPackageManager: Failed to find HMS apk 2021-10-28 15:13:16.942 15137-15137/xxx.xx.xxx E/AndroidRuntime: FATAL EXCEPTION: main Process: xxx.xx.xxx, PID: 15137 java.lang.IllegalArgumentException: Software rendering doesn't support hardware bitmaps at android.graphics.BaseCanvas.onHwBitmapInSwMode(BaseCanvas.java:593) at android.graphics.BaseCanvas.throwIfHwBitmapInSwMode(BaseCanvas.java:600) at android.graphics.BaseCanvas.throwIfCannotDraw(BaseCanvas.java:80) at android.graphics.BaseCanvas.drawBitmap(BaseCanvas.java:140) at android.graphics.Canvas.drawBitmap(Canvas.java:1504) at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:545) at coil.drawable.CrossfadeDrawable.draw(CrossfadeDrawable.kt:90) at android.widget.ImageView.onDraw(ImageView.java:1360) at android.view.View.draw(View.java:21881) at android.view.View.draw(View.java:21749) at android.view.ViewGroup.drawChild(ViewGroup.java:4558) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4333) at android.view.View.draw(View.java:21884) at android.view.View.draw(View.java:21749) at android.view.ViewGroup.drawChild(ViewGroup.java:4558) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4333) at android.view.View.draw(View.java:21884) at androidx.viewpager.widget.ViewPager.draw(ViewPager.java:2426) at android.view.View.draw(View.java:21749) at android.view.ViewGroup.drawChild(ViewGroup.java:4558) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4333) at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1994) at android.view.View.draw(View.java:21747) at android.view.ViewGroup.drawChild(ViewGroup.java:4558) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4333) at android.view.View.draw(View.java:21747) at android.view.ViewGroup.drawChild(ViewGroup.java:4558) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4333) at android.view.View.draw(View.java:21884) at android.widget.ScrollView.draw(ScrollView.java:2775) at android.view.View.draw(View.java:21749) at android.view.ViewGroup.drawChild(ViewGroup.java:4558) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4333) at android.view.View.draw(View.java:21884) at android.view.View.draw(View.java:21749) at android.view.ViewGroup.drawChild(ViewGroup.java:4558) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4333) at android.view.View.draw(View.java:21747) at android.view.ViewGroup.drawChild(ViewGroup.java:4558) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4333) at android.view.View.buildDrawingCacheImpl(View.java:21144) at android.view.View.buildDrawingCache(View.java:21010) at android.view.View.buildDrawingCache(View.java:20962) at com.elconfidencial.bubbleshowcase.BubbleShowCase.takeScreenshotOfLayoutView(BubbleShowCase.kt:359) at com.elconfidencial.bubbleshowcase.BubbleShowCase.takeScreenshot(BubbleShowCase.kt:348) at com.elconfidencial.bubbleshowcase.BubbleShowCase.addTargetViewAtBackgroundDimLayout(BubbleShowCase.kt:217) at com.elconfidencial.bubbleshowcase.BubbleShowCase.access$addTargetViewAtBackgroundDimLayout(BubbleShowCase.kt:25) at com.elconfidencial.bubbleshowcase.BubbleShowCase$show$1.run(BubbleShowCase.kt:108) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7050) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)