Adding the Analytics Package to the project resulted in an error in the project. As explained in this blog , the error occurs when the project has more than 65536 methods ( only the added Google Play Services package has about 30,000 methods). The same link that explains the error brings the solution, enable the Multi-dex .
When activating Multi-dex, another error occurred, the option for multi-dex fails when the Android SDK contains a space, as the Android SDK folder is inside "C: \ Program Files (x86) \ Android \ android-sdk "error occurs because of" Program Files (x86) "that has spaces between words.
Does anyone have a solution?