Design has more than 65536 methods

Asked

Viewed 119 times

8

When adding the Analytics Package to the project, an error occurred in the project. As explained on this blog , the error occurs when the project has more than 65536 methods (only the added Google Play Services package has close to 30,000 methods). The same link that explains the error brings the solution, activate the Multi-dex.

When activating Multi-dex, another error occurred, The option for multi-dex fails when the path to the Android SDK contains a space, as the Android SDK folder is inside "C: Program Files (x86) Android-sdk" error occurs because of "Program Files (x86)" that has spaces between words.

Does anyone have any solution?

  • Using Windows to develop software sooner or later falls into this problem. Is it possible to reinstall the sdk elsewhere? C: dev for example ?

  • I believe I can move, I’ll try!

1 answer

8


I already had this problem and to solve it I copied the file "android-sdk" inside the directory C (C: android-sdk) solving the problem of space in the URL.

After copying you need to update the paths to the SDK:

In Visual Studio the file location path:

 Tools > Options > Xamarin > Android Settings > Android SDK Location

At Xamarin Studio:

 Tools > Options > SDK Locations > Android > Android SDK

After this change another error occurs:

 "Unsupported class version number [52.0] (maximum 51.0, Java 1.7)".

To resolve it it was necessary to update the file proguard android-sdk. After downloading the latest version of the file, simply rename the existing "proguard" file to any name, unzip the downloaded file within "android-sdk" and change its name to "proguard".

Browser other questions tagged

You are not signed in. Login or sign up in order to post.