小编Sou*_*osh的帖子

Android材料芯片组件崩溃的应用程序.无法充气xml

从支持库和材料中尝试芯片组件
com.google.android.support:design:28.0.0-rc01
com.google.android.material:material:1.0.0-rc01

堆栈跟踪

android.view.InflateException: Binary XML file line #72: Binary XML file 
      line #72: Error inflating class com.google.android.material.chip.Chip 
      at android.view.LayoutInflater.inflate(LayoutInflater.java:551)
      at android.view.LayoutInflater.inflate(LayoutInflater.java:429)`
Run Code Online (Sandbox Code Playgroud)

布局

<com.google.android.material.chip.Chip
    android:id="@+id/chip"
    style="style/Widget.MaterialComponents.Chip.Entry"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/account"
    app:closeIconEnabled="true" />`
Run Code Online (Sandbox Code Playgroud)

android android-support-library android-chips material-components material-components-android

22
推荐指数
3
解决办法
9077
查看次数

Google Play Billing Library 3.0.3 导致内存泄漏

根据 Play Billing 库 3.0.3 的发行说明,内存泄漏已得到修复。但我仍然从 Leak Canary 得到这个泄漏


在此处输入图片说明

在此处输入图片说明

Google Play 结算库发行说明

我在其中设置 BillingClient 的代码(onCreate 我的 Fragment)


在此处输入图片说明

我在其中调用 BillingClient.endConnection() 的代码(我的 Fragment 的 onDestroyView)


在此处输入图片说明

我的代码有什么问题,还是 Google 库中现有的内存泄漏?

android memory-leaks play-billing-library google-play-billing

5
推荐指数
0
解决办法
119
查看次数