How to update Uno installation

Ok, so this is what I have so far gang, y’all welcome to add your own experiences…

Note 1: Not for the feint of heart; use at own risk :stuck_out_tongue:
Note 2: You won’t be able to compile for older android versions once you do this, so probably good to keep a separate machine for older builds with a fresh install.

  1. Backup your android sdk folder before you get started.
    Mine was in /Users/<user folder>/Library/Android/sdk
  2. Download the Uno repo: https://github.com/fuse-open/uno
  3. Get all the prerequisites if ya don’t already have them. I specifically got Mono, Make, Node.js and NuGet (I also have VS but didn’t end up using it)
  4. Open terminal to the root of the uno repo
  5. Use make release - this will output a “release” folder
  6. Copy the files in the release/bin folder to /Applications/Fuse.app/Contents/Uno
    (Right-click show contents on the fuse app)
  7. Copy the files in the release/lib folder to
    /Users/<User folder>/Library/Application Support/Fusetools/Packages
  8. Update your Android SDK:
    7.1. Goto Android SDK folder /Users/<User folder>/Library/Android/sdk/tools/bin
    7.2. View what you currently have installed by executing ./sdkmanager --list
    7.3. Update SDK by executing ./sdkmanager --update
  9. Copy back your NDK folder from your Android SDK backup
    8.1. Copy ndk-bundle to your SDK folder
  10. You should be good to go with building for Android 8.0 with the latest tools now (don’t forget to uno clean)

If your old NDK still isn’t working, then you could try download an older one and override it (Step 8): https://developer.android.com/ndk/downloads/revision_history
@Giako said he had success with r16b (thanks mate)

Oh, I used this setting in my .unoproj:

"Android": {
    "SDK": {
      "MinVersion": 26
    }
}

Ps. My reason for note 2 (21 Sep 2018):
warning_1

2 Likes