Art: Verification of X took Y ms

后端 未结 2 589
青春惊慌失措
青春惊慌失措 2020-12-30 02:55

I\'ve got a warning in my logcat:

W/art: Verification of void com.myapp.LoginFragment$override.lambda$logIn$5(com.myapp.LoginFragment, java.lang.Throwable) t         


        
相关标签:
2条回答
  • 2020-12-30 03:24

    For anyone in year 2020 and beyond looking for the solution -- Android 11 has the following setting in the Developer options:

    It's ON by default. Turn it OFF to get rid of the annoying delays every time app is launched when debugging.

    0 讨论(0)
  • 2020-12-30 03:27

    It looks like this is part of the 'backwards compatibility' requirement for the newer ART runtime. That is, apps built against DALVIK need to be able to run on ART as well.

    If you run a DVM app on an ART system, you'll see this message the first time it runs when dex2oat converts the application. If you build the application targeting ART, the app will no longer be able to run on DVM, but the OAT conversion will happen during installation and is not seen at runtime.

    Source: The Art of Art note this is part one of a three part investigation of ART and you may need to check parts two and three

    0 讨论(0)
提交回复
热议问题