The account that you are logged onto will also need to have the ‘Allow user to administer this computer’ checkbox checked under ‘ System Preferences -> Users & Groups’. We are going to rely on group membership to allow users to access and update the SDK. We will be using sudo because we want the files to be owned by root. Open the terminal app and create a directory for the SDK. ![]() The /opt/ and /usr/local/ directories would be the most common but it doesn’t really matter where you put it as long as it is in a place where all users on the system can access it. We will start by picking a place where the SDK will live on the system. Installing the SDK Creating a home directory After an update session there will be directories and files created belonging to one user and when another user tries to update these they will fail because of permissions issues. The Android SDK is not a static one and over time various new features and updates will be downloaded into it. There is another reason to make the SDK multi-user capable if we’re putting it outside of our home directory. ![]() If you are the only user on your system then I would suggest that you just place the SDK in your home directory, for example ~/bin/android-sdk-mac This is fine and it will certainly work, but these are not per user locations so I would be reluctant to place the SDK there unless I made some effort to make it available to other users on my system also. I’ve seen guides suggesting that you install the SDK in one of these locations: ![]() This blog post is more about the journey of making the SDK more suitable for multiple users rather than an endorsement of the methods below. I dont think this would work for multiple concurrent users updating the SDK. ![]() Most of the concepts will be similar on other Unix or Linux systems. This guide will explain how to share the Android SDK between multiple users on an OS X system.
0 Comments
Leave a Reply. |