从支持库和材料中尝试芯片组件
com.google.android.support:design:28.0.0-rc01
com.google.android.material:material:1.0.0-rc01
堆栈跟踪
Run Code Online (Sandbox Code Playgroud)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)`
布局
<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
我在其中设置 BillingClient 的代码(onCreate 我的 Fragment)
我在其中调用 BillingClient.endConnection() 的代码(我的 Fragment 的 onDestroyView)
我的代码有什么问题,还是 Google 库中现有的内存泄漏?
android memory-leaks play-billing-library google-play-billing