Rejecting re-init on previously-failed class java.lang.Class supportLib=28

前端 未结 4 1866
北荒
北荒 2021-02-01 15:04

This weird logcat messages started when I switched to supportLibrary 28, not happens on 27.1.1. I tried with an empty default project and the result exactly the same.

Th

4条回答
  •  迷失自我
    2021-02-01 15:59

    If you replace AppCompatActivity with Activity in public class MainActivity extends AppCompatActivity, the warning will be gone as the conflict is related to AppCompat in Android X.

    However, not the best solution if you need to keep the backward compatibility for older devices. Otherwise you can just ignore this warning until any fix will appear.

提交回复
热议问题