Jet Brains and Google recently announced a security update for IntelliJ-based IDEs to patch RPC vulnerabilities with the built-in web server. Android Studio is based on IntelliJ so the advice from Google is to update your version of Android Studio.
There’s a good press release on the topic here: https://dzone.com/articles/android-studio-v211-released-to-fix-security-vulne
The latest release of EMDK for Android is 4.0 which states support for Android Studio 1.0.1. Obviously this version is reasonably old and most developers will already be using a more recent version of Android Studio, either 1.5.x, 2.0.x or 2.1.x.
Android Studio 1.x
Developers who wish to continue on the 1.x line will need to upgrade to Android Studio 1.5.2. Google have released instructions on how to do this here: http://tools.android.com/download/studio/builds/1-5-2/ . Unfortunately, the official documented update process will cause you to lose EMDK integration from the Android Studio IDE.
Android Studio 2.1.x
Google actually “highly recommend” moving to Android Studio 2.1.1 and any developer wishing to do so can use the internal Android Studio update mechanism. However during an automatic update you may see one of the following dialogs:
Therefore updating Android Studio using the built in update mechanism will cause you to lose EMDK integration.
Long story short… Re-Integrating EMDK with Android Studio
So, even if you are upgrading to Android Studio 1.5.2 or 2.1.1 you will lose EMDK integration with Android Studio and your ability to easily create applications for Zebra devices.
In order to Re-integrate EMDK 4.0 with your IDE please perform the following steps which apply equally to both Windows and Mac:
- Uninstall your existing EMDK for Android (it’s fine to leave EMDK for Xamarin installed if you are using both)
- Ensure Android Studio is closed
- Re-install EMDK for Android
- You may find that after upgrading, your EMDK based project fails to build with Gradle errors saying that the EMDK SDK cannot be found, if this is the case then please follow the steps documented at http://techdocs.zebra.com/emdk-for-android/4-0/tutorial/tutCreateProjectAndroidStudio/ which describes selecting the Compile Sdk version.
Yes, the software equivalent of "turn it off and on again"!