You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2020-08-10 10:37:33.318 18992-18992/com.mycompany.mypackage E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mycompany.mypackage, PID: 18992
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mycompany.mypackage/com.mycompany.mypackage.ui.main.MainActivity}: android.view.InflateException: Binary XML file line #7: Binary XML file line #7: Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2793)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
at com.didiglobal.booster.instrument.ActivityThreadCallback.handleMessage(ActivityThreadCallback.java:74)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6577)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)
Caused by: android.view.InflateException: Binary XML file line #7: Binary XML file line #7: Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView
Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at android.view.LayoutInflater.createView(LayoutInflater.java:656)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:798)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:738)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:869)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:832)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
at com.mycompany.mypackage.databinding.ActivityMainBinding.inflate(ActivityMainBinding.java:49)
at com.mycompany.mypackage.databinding.ActivityMainBinding.inflate(ActivityMainBinding.java:43)
at com.mycompany.mypackage.ui.main.MainActivity.onCreate(MainActivity.kt:14)
at android.app.Activity.performCreate(Activity.java:6910)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
at com.didiglobal.booster.instrument.ActivityThreadCallback.handleMessage(ActivityThreadCallback.java:74)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6577)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setImportantForAccessibility(int)' on a null object reference
at androidx.core.view.ViewCompat.setImportantForAccessibility(ViewCompat.java:1120)
at com.google.android.material.bottomnavigation.BottomNavigationItemView.(BottomNavigationItemView.java:104)
at com.google.android.material.bottomnavigation.BottomNavigationItemView.(BottomNavigationItemView.java:87)
at com.google.android.material.bottomnavigation.BottomNavigationItemView.(BottomNavigationItemView.java:83)
2020-08-10 10:37:33.318 18992-18992/com.mycompany.mypackage E/AndroidRuntime: at com.google.android.material.bottomnavigation.BottomNavigationMenuView.getNewItem(BottomNavigationMenuView.java:606)
at com.google.android.material.bottomnavigation.BottomNavigationMenuView.buildMenuView(BottomNavigationMenuView.java:538)
at com.google.android.material.bottomnavigation.BottomNavigationPresenter.updateMenuView(BottomNavigationPresenter.java:67)
at com.google.android.material.bottomnavigation.BottomNavigationView.inflateMenu(BottomNavigationView.java:351)
at com.google.android.material.bottomnavigation.BottomNavigationView.(BottomNavigationView.java:226)
at com.google.android.material.bottomnavigation.BottomNavigationView.(BottomNavigationView.java:133)
... 25 more
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
id 'kotlin-android-extensions'
//id 'kotlinx-atomicfu'
//id 'kotlinx-serialization'
//id 'androidx.navigation.safeargs'
id 'androidx.navigation.safeargs.kotlin'
//id 'com.getkeepsafe.dexcount'
id 'com.didiglobal.booster'
id 'project-report'
id 'net.ltgt.errorprone'
id 'net.ltgt.nullaway'
id 'AndResGuard'
id 'com.github.ben-manes.versions'
//id 'dagger.hilt.android.plugin'
//id 'realm-android'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
buildFeatures {
viewBinding true
resValues true
}
......
}
......
My MainActivity
MainActivity.kt
class MainActivity : BaseActivity() {
private lateinit var binding: ActivityMainBinding
public override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)
binding.navView.itemIconTintList = null
}
override fun onStart() {
super.onStart()
NavigationUI.setupWithNavController(binding.navView,
Navigation.findNavController(this, binding.navHostFragment.id))
}
}
Task :app:transformClassesWithBoosterForDebug
WARNING: DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'.
It will be removed in version 5.0 of the Android Gradle plugin.
com.didiglobal.booster.transform.thread.ThreadTransformer : 156 ms
com.didiglobal.booster.transform.webview.WebViewTransformer : 0 ms
com.didiglobal.booster.transform.finalizer.watchdog.daemon.FinalizerWatchdogDaemonTransformer : 15 ms
com.didiglobal.booster.transform.res.check.ResCheckTransformer : 0 ms
com.didiglobal.booster.transform.toast.ToastTransformer : 0 ms
com.didiglobal.booster.transform.activitythread.ActivityThreadTransformer : 0 ms
com.didiglobal.booster.transform.r.inline.RInlineTransformer : 46 ms
The text was updated successfully, but these errors were encountered:
App crash after applying didi booster.
System version Huawei P10 Android 7.0 VTR-L29C900B109SP01
Java version 1.8
Kotlin version 1.4.0-rc
Gradle version 6.5
Android Gradle plugin version 4.0.1
Booster version 2.3.1
classpath 'com.didiglobal.booster:booster-gradle-plugin:2.3.1'
classpath 'com.didiglobal.booster:booster-transform-thread:2.3.1' //多线程优化
classpath 'com.didiglobal.booster:booster-transform-webview:2.3.1' //WebView预加载
classpath 'com.didiglobal.booster:booster-transform-finalizer-watchdog-daemon:2.3.1' //回收超时监控
classpath 'com.didiglobal.booster:booster-transform-res-check:2.3.1' //修复覆盖未找到资源
classpath 'com.didiglobal.booster:booster-transform-toast:2.3.1' //修复Toast
classpath 'com.didiglobal.booster:booster-transform-activity-thread:2.3.1' //系统崩溃兜底
classpath 'com.didiglobal.booster:booster-transform-r-inline:2.3.1' //内联资源
classpath 'com.didiglobal.booster:booster-task-compression-processed-res:2.3.1' //文件压缩
Stack traces
My build.gradle
app level
module level
My MainActivity
MainActivity.kt
activity_main.xml
My report
booster-transform-r-inline/debug/report.txt
booster.transform.r.inline.ignores=[, android/support/constraint/R$id, androidx/constraintlayout/R$id]
Retained symbols:
Delete files:
booster-task-compression-processed-res/debug/report.txt
Other reports are just blank.
My build output
The text was updated successfully, but these errors were encountered: