[AC-5789] [Mac] Android: ERROR: Unknown option '--no-version-vectors'
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | n/a |
Status | Closed |
Resolution | Done |
Resolution Date | 2018-07-03T15:00:41.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | nicolomonili |
Assignee | Shak Hossain |
Created | 2018-07-02T08:59:08.000+0000 |
Updated | 2018-07-03T15:00:41.000+0000 |
Description
I would like to try a very simple test app on an Android device, but after 3 hours i could not configure the development environment for Android correctly.
- Actual error:
!Schermata 2018-07-02 alle 11.05.06.png|thumbnail!
- *Android SDK* is located here: _/Users/nicolo/Library/Android/sdk_
- Actual *Android* and *Android SDK Build Tools* versions
!Schermata 2018-07-02 alle 10.52.37.png|thumbnail!
!Schermata 2018-07-02 alle 10.52.42.png|thumbnail!
- Appcelerator check for Android environment
!Schermata 2018-07-02 alle 10.53.55.png|thumbnail!
- Docs that i have read: https://docs.appcelerator.com/platform/latest/#!/guide/Installing_the_Android_SDK
- If i remove the* Android SDK build-tools version 22.0.1* the result is this. And the "Appcelerator check for Android environment", always shows "build tools unsupported version 22.0.1"
!Schermata 2018-07-02 alle 11.07.35.png|thumbnail!
------
Which versions of *Android* and *Android Build tools* need to be installed? (rev 23?)
I tried to install several versions of *Android* and *Android Build tools* , with no results
[~nicolomonili], the minimum for 7.0.0 as stated on https://docs.appcelerator.com/platform/latest/#!/guide/Installing_the_Android_SDK-section-src-29004851_InstallingtheAndroidSDK-RequiredAndroidpackages. The errors you're seeing are because the tools versions are too low - Android SDK Platform-tools v23 - Android SDK Build-tools v23 - Android SDK Tools v23 - Android SDK API 23. Personally I've been using the below with no issues - Android SDK Platform-tools v27.0.1 - Android SDK Build-tools v27.0.3 - Android SDK Tools v26.1.1 - Android SDK APIs 25, 26, 27
Can i ask you what is your android sdk installation folder? /Users/-/Library/Android/sdk or /Users/-/Library/android-sdk/ Appcelerator seem to need the second option, it's possible?
My sdk installation is
/Users/eharris/Library/Android/sdk/
, but Titanium finds it because I've set it in the config. If you wish to point Titanium to first one you can callti config android.sdkPath /Users/-/Library/Android/sdk
, to allow it to find itMy /Users/-/Library/Android/ folder does not have a folder sdk.. !Schermata 2018-07-02 alle 12.24.02.png|thumbnail!
!Schermata 2018-07-02 alle 12.24.30.png|thumbnail!
In that case you should just be able to point it at the
/Users/nicolo/Library/Android
dir I believe. Did you install the SDK through Appcelerator Studio or Android Studio?Now i added an SDK folder in the Android folder, and Appcelerator now detect the sdk folder correctly, showing me the emulators and the Android Device. Appcelerator Studio and Android Studio, now, link to the same sdk folders. I have install the Android SDK through Android Studio
The problem is always the same !Schermata 2018-07-02 alle 12.37.58.png|thumbnail! --> Android SDK Build Tools: 22.0.1, how it's possible? This is my build-tools folder !Schermata 2018-07-02 alle 12.39.53.png|thumbnail!
Do you have 2 SDK installs on your machine? Or is it just that one at
/Users/nicolo/Library/Android
. If you have 2, maybe try deleting the one not at/Users/nicolo/Library/Android
I have only 1 SDK installation on my machine.... how can a non-existent version be recognized?
What does
appc ti setup check
show now for the Android environment? As well asappc ti info -t android
? I'm not sure how it's picking up the 22.0.1 version. Did you uninstall it via the Android Studio installer? Maybe try removing all packages in the Android Studio installer, and then readding themappc ti setup check !Schermata 2018-07-02 alle 13.53.25.png|thumbnail! appc ti info -t android !Schermata 2018-07-02 alle 13.54.32.png|thumbnail! !Schermata 2018-07-02 alle 13.54.44.png|thumbnail! I have uninstall Android Studio following this : https://stackoverflow.com/questions/17625622/how-to-completely-uninstall-android-studio
UPDATE (for info): I have tried to install a simple application, on my Android test device, using Android Studio, and all is working ok.
Then, it's a problem of Appcelerator Studio. Is there anything else i can try?
Could you try running
appc ti info -t android -o json
, it might give better info about where it's picking that version up formIs there definitely nothing located at
Users/nicolo/Library/Android/sdk/build-tools/22.0.1
, the detection has no caching so for it to pick something up there must be something in that location.... !Schermata 2018-07-03 alle 14.47.35.png|thumbnail!
Ah, I did a little research and I think I might have an idea (at least this makes me break the same way as you on my machine), do you have a config setting for
android.buildTools.selectedVersion
check usingappc ti config
, if so remove it usingappc ti config --remove android.buildTools.selectedVersion
. If not I'll go back to researching..Yes, now something is changed... !Schermata 2018-07-03 alle 15.51.00.png|thumbnail!
I installed the versions you suggested, and now everything works correctly. Thank you so much.
That warning is expected as the latest hasn't been fully tested yet so we cant be certain everything works for certain. I've filed TIMOB-26180 to improve upon the reporting here so that an error like this will be more obvious in future, apologies for your time lost here! I'm going to close this ticket out as done