![]() ![]() Make sure the doctor is happy (do what it tells you): brew doctor Install Homebrew: ruby -e "$(curl -fsSL )" XCode command line tools are installed ( xcode-select -install will prompt up a dialog).Prerequisites (for Homebrew at a minimum, lots of other tools need these too): Updated: this issue was fixed after I reported to NativeScript repos.Here is a high level overview for what you need to do to get most of an Android environment setup and maintained. Hope community will fix the message, or maybe Android 31 will be supported soon □. To be able to build for Android, install Android SDK 28 or later. Image if someone who have proper Build-Tools installed, but Android SDK 31 is installed they will be leave with this clueless message: Cannot find a compatible Android SDK for compilation. Honestly I would not have a clue if there was no mentioned ‘>=23 <=30’ on Build-Tools version. My ns version was 8.1.3 (latest at the time I wrote this post). It should state that Android SDK 31 >= are not supported yet or something like they did with Build-Tools. In the conclusion, that ns doctor message was bit misleading. Run ns doctor again, and now you are good to go: There is another trap when select Build-Tools version, don’t forget to click on “Show Package Details” at the bottom or you will not see the old versions. SDK Platforms > Android 11.0 (R) API Level 30.The simplest way to get NativeScript back to work in this situation is open Android Studio and install older SDK version 30. Turned out that NativeScript do not support Android SDK and build tools version 31 (YET), which is installed by default on latest Android Studio version.īe aware that SDK itself and build tools are different things. I could not found anywhere the official information about maximum supported build tools version except messages that “ns doctor” yelling about. Solutions for “ Cannot find a compatible Android SDK for compilation.” You can install any version in the following range: '>=23 =23 <=30′”, this catches my attention. ✖ You need to have the Android SDK Build-tools installed on your system. Run `$ sdkmanager` to manage your Android SDK versions. Ns doctor keep yelling me at: ✖ Cannot find a compatible Android SDK for compilation. Cannot find a compatible Android SDK for compilation. Even after follow all detailed steps in official guide. However, I’m still facing a minor issue during attempt to setting Environment up on my fresh mac. My team used to have a Wiki for new developers to get on board because the official docs had many flaws. In effort of getting more new Developer on board, NativeScript community recently update the official document and make so much better now. Finally, I decided to switch to 2019 MacBook Pro 15″, this time I take 32GB one, better safe than sorry, hah. ![]() However, it could not keep up anymore with my current workload, I gave up long time ago of using emulator during development due to lack of memory and CPU power. My old MacBook pro 13″ with only 8GB of RAM, did a good job for serving me well on mobile development journey. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |