Pass my project on a usb to transport it, but I try to open it on my mac and I get the following error:
android studio will use this android sdk instead
How can I solve this?
As the name indicates local.properties
are local configurations (of each computer / user) if you are going to work between two different systems you will have to have one for each system. That is to say in the new system you edit it and you put the correct path of the SDK and then when copying it to move to the other system, you exclude it or re-edit it.
If the project you want to open was created on another computer, the path of the Android SDK configured in the project may be different since to install the Android SDK, the user can do it where he wants, for this reason when you try to open a project that was made in another pc and the route of the Android SDK is different, the message is displayed:
In this case, the message of your question indicates the route of a PC and your Android Studio of iOS has the Android SDK configured in another route.
If you click on the "OK" button, the settings in the Android SDK route project will be made automatically.
If you want a manual configuration, open the file local.properties
and define the path of the Android SDK of your Android Studio, which in your case would be:
sdk.dir=/Users/develophersalpha/Library/Android/sdk