thyrlian / AndroidSDK

🐳 Full-fledged Android SDK Docker Image
Apache License 2.0
1.25k stars 219 forks source link

Warning: Failed to read or create install properties file. #34

Closed 72L closed 4 years ago

72L commented 4 years ago

Following the instructions for Emulator, I get an error:

root@768cc52f988b:~# sdkmanager "platform-tools" "platforms;android-24" "emulator"
Warning: Failed to read or create install properties file.                      
root@768cc52f988b:~#                    ] 10% Installing Android SDK Platform 24
72L commented 4 years ago

fixed this by removing the :ro from this line in the SSH instructions:

docker run -d -p 2222:22 -v $(pwd)/sdk:/opt/android-sdk:ro android-sdk
thyrlian commented 4 years ago

There are various ways of managing SDK. Personally speaking, I would not recommend dropping a whole package of SDK into a container. Three reasons:

That's why I decoupled SDK from the image. You can mount it from any NFS, or host it on Amazon S3. Please read the README carefully - ro here is to avoid accidental updating/modification of SDK in parallel from different instances. But if you're sure there will be only one instance at a time, or no parallel updating, that's totally fine to remove ro.

Have fun :)