[AC-5142] Cannot Build for Android using SDK 5.X after installing 6.1.2.GA on Studio 4.9.1.201707200100
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-10-31T20:21:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Phil Sweeney |
Assignee | Shak Hossain |
Created | 2017-08-15T17:32:32.000+0000 |
Updated | 2017-10-31T20:21:08.000+0000 |
Description
Steps to Reproduce
1. Install Studio 4.9.1.201707200100 and mobiel sdk 6.1.2.GA
2. Build a project for android (not sure this is really required) The build will take place.
3. Install mobile sdk 5.5.1.GA
4. Try to build a project with 5.5.1.GA
Actual Result
[ERROR] : No Android SDK targets found.
[ERROR] : Please download an Android SDK target API level 23 or newer from the Android SDK Manager and try again.
If you uninstall 6.1.2 at this point, your Android environment is messed up. If you look at the Android platform setup in preferences, it will say that no Android SDKs were found, though they are there. Put 6.1.2 back in, and Android is OK again, but trying to BUILD with 5.5.1 can't find the SDKs.
Expected Result
It should build with either 5.5.1 or 6.1.2
Attachments
File | Date | Size |
.log | 2017-08-15T17:32:33.000+0000 | 249757 |
Diagnostics.log | 2017-08-15T21:06:01.000+0000 | 87748 |
Hello, I wasn't able to reproduce the issue after installing SDK 6.1.2.GA. I can still build for 5.5.1.GA. And also my Android SDK location is fine in studio. Possibly you are missing some API's in Android SDK manager or your Titanium SDK 6.1.2.GA installation was faulty. Please try reinstalling SDK. and Updating Android SDK. Thanks.
Is there a process behind uninstalling a mobile sdk, or is it just a matter of removing it's directory? I've been just removing the 6.1.2 directory.
I've uninstalled Studio and the mobile sdks. Reinstalled Studio which included 6.1.2.GA. During installation it correctly identified the Android SDK setups, and I can build in Android. If I then install 5.5.1.GA and try to use it to build an Android app, I get the Error about no target SDKs found. Studio at this point still sees the Android SDKs. If I delete 6.1.2.GA, and all I have at that point is 5.5.1.GA, then Studio cannot find any of the Android SDKs, which are definitely installed. So, what about the mobile sdk's change the behavior of Android SDK Home? Are there dependencies involved here that are coming into play? Node or Java? I'm going to find a way to attach a diagnostic report from Studio.
Hello, So I see the issue is not with SDK 6.1.2.GA. As you said with only that SDK you are able to build on Android. Can you update your Android SDK? Try downloading the API 21,22,23,24 and build tools. in Android SDK manager. Maybe SDK 5.5.1.GA is looking for supporting API's in Android SDK and not finding one. Thanks.
Hello! I've installed Build Tools and SDKs for 21,22,23, and 24. Without SDK 6.1.2.GA installed, Studio says there are no Android SDKs under the specified SDK Location. If I install 6.1.2.GA, Studio finds the Android SDKs - as long as I build with 6.1.2.GA.
Hello, Try building with latest SDK 6.2.2.GA. Thanks.
Hello, Whats the update on building in 6.2.2.GA?
We have migrated to 6.2.2 - But you don't seem to understand the issue. The system will not build in 5.5.1 after you have installed 6.1.x or higher. This forced us to migrate. At this point, I don't care about the bug any longer.
Hello, I can build for Android in SDK 5.5.1.GA, and I have already installed 6.2.2.GA in my system. The app runs fine with SDK 5.5.1.GA. Thanks.