After update of AS to 1.0, getting “method ID not in [0, 0xffff]: 65536” error in project

后端 未结 2 418
余生分开走
余生分开走 2020-11-30 03:13

I updated Android Studio to the latest version, and let it \"fix the project\" and the like - but now my project does not compile, gives me

 FAILED

FAILURE         


        
2条回答
  •  情话喂你
    2020-11-30 03:46

    The error means you have reached maximum method count in your app. That does include any libraries that you use for your project.

    There are two ways to tackle the issue:

    1. Get rid of any third-party libraries that you don't really need. If you use google play services that might contribute a lot to the method count. Fortunately as of the latest play-services release it is possible to include only parts of the framework.
    2. Use a multi dex setup for your application.

提交回复
热议问题