Class not found errors on blank Android Activity

后端 未结 2 583
既然无缘
既然无缘 2021-01-28 05:28

When I create a blank activity in Android Studio 2.0 and try to run it on API 16 it compiles without errors. When I run it on an emulator with API 23 it runs without errors. Whe

2条回答
  •  [愿得一人]
    2021-01-28 06:14

    It could be that your app is hitting the 64k methods limit. The issue would be seen from API level 21 and below for your app. Refer the document. It gives details about the problem and how you can use Multidex Support Library to resolve it for older versions of Android.

    Also this could be a quick solution of the problem.

提交回复
热议问题