Put Android-support-multidex.jar under Libs and compile with the following error:
Error:Executionfor‘:app:packageAllDebugClassesForMultiDex‘.> java.util.zip.ZipException:entry: android/support/multidex/MultiDex.class
The reason is that many of the same packages have been introduced, but there is only one package under Libs, and after a variety of attempts, the final solution is as follows:
1. Upgrade the support of the SDK for this computer to the latest version:
If it is not possible to download it for network reasons, it can be downloaded from here, and then put the downloaded jar into the ~\extras\android\support\multidex\library\libs directory under the Local SDK directory;
2. In the dependencies of the Gradle script compile ‘com.android.support:multidex:1.0.0‘ and remove the Multidex package from the Libs directory of the project, Gradle will automatically go to the SDK directory below (note that it is not repositories download, There is no such package in repositories, so we need to do the first step);
3. Compile again to work properly.
Android Multi-dex packaging problem