Reputation: 31
I Open a existing project to android studio and get this
Gradle sync failed: CreateProcess error=193, %1 is not a valid Win32 application
Upvotes: 2
Views: 7977
Reputation: 1
Download platform-tools for windows from https://dl.google.com/android/repository/platform-tools_r31.0.2-windows.zip and unpack it in ~Android/Sdk. This will replace the platform-tools folder.
Upvotes: 0
Reputation: 107
Just download the last android studio from here https://developer.android.com/studio and it will hopeful work
Upvotes: 0
Reputation: 2245
You should check the JDK Location settings, which appears be changed on every Android Studio update, with commands ctrl + Alt + Shift + S (to reveal the Project Structure menu options, and uncheck the Use embedded JDK and find your current JDK Location, on windows machines, you can see that location on environment variables JAVA_HOME.
Upvotes: 3
Reputation: 9153
This happened to me.
You probably need to download a full release of Android Studio (see Note).
They are .zip files form here:
http://tools.android.com/download/studio/canary/latest
E.G. If you Android Studio (Windows) is in "C:\Program Files\Android\Android Studio":
Rename "Android Studio" to "Android Studio.old"
Unzip the release to "C:\Program Files\Android\Android Studio".
C:\Program Files\Android\Android Studio\ +---bin | +---gradle | +---jre | +---lib | +---license | +---plugins
Note: Android Studio 2.3 Canary 1 had issues in it's patching system, so a full download is needed when moving from Canary 1 to Canary 3. Android Studio 2.2.X should offer patches from major stable releases. All other users will need to download a full release to update.
Upvotes: 0