You can add local.properties to set sdk.dir as sdk.dir=/Users/roofe/Library/Android/sdk .
But please pay attention below , which is very important,
add local.properties to the topmost project path. Here the top one has some difference with the root path of the project.
For example, in the project below, I just use the ijkplayer example, but this module also used a different module with a different processor architecture.
If I add only local.properties to the ijkplayer-example, this will not work. Here you will get the sdk location question for another module.
While I can add local.properties to the ijkplayer directory, then when I try to open the ijkplayer example project, local.properties for the ijkplayer example will be automatically created and everything will be fine.

Kris Roofe Jun 07 '17 at 3:30 2017-06-07 03:30
source share