Errors while building a mobile project are usually due to configuration issues. The most common problems and possible solutions are posted here.
iOS SDK version XXX not found
This will happen if you have upgraded your iOS SDKs, and the old one is not available. To fix:
- Select Run > Run Configurations... (you will get to the same spot if you choose Debug Configurations...).
- Select the configuration for the project you are having an issue with.
- Choose an available iOS SDK from the list.
- Save and close the dialog.
Could not locate the Android SDK at the given path
This usually appears inside the Preference dialog inside Studio. Studio runs a Python script to determine your current configuration. To diagnose the exact issue, please try the following:
- Turn on debug logging: Debugging Studio, and enable specific component com.aptana.core/debug/shell.
- Re-open the Preference dialog.
- Open the Studio log file (Help > Studio > View Log File) and scroll to the end.
You should see a command line invocation of
avd.py, for example:
- Copy and paste that complete command line into a terminal window and run it. Check the output. If it doesn't find minimum required Android SDK, the configuration will be marked as invalid.
It may be that you don't have an
avd.py script at the location it's looking. To solve that, just install the latest Continuous Build, ensuring that you choose the master branch from the drop-down menu of the download site, and restart Studio.
iOS configuration issues
This usually appears inside the Preference dialog inside Studio. Studio runs some commands to determine your current configuration:
- To determine the location of your xcode tooling, it runs
- It then looks at
/Platforms/iPhoneSimulator.platform/Developer/SDKsunderneath that path for the SDK locations.
- Currently, it expects to see at least one iOS SDK of version greater than or equal to 4.2 and less than 5.1. You can have more installed than that, but you at least need one within that range.