Error

=> ERROR [12/17] RUN cd Android/sdk/tools/bin && ./sdkmanager "build-tools;29.0.2" "patcher;v4" "platform-tools" 7.0s ------ > [12/17] RUN cd Android/sdk/tools/bin && ./sdkmanager "build-tools;29.0.2" "patcher;v4" "platform-tools" "platforms;android-29" "sources;android-29": Warning: File /root/.android/repositories.cfg could not be loaded. Warning: Failed to find package patcher;v4 . #15 7.000 [=== ] 10% Computing updates... ------ executor failed running [/bin/sh -c cd Android/sdk/tools/bin && ./sdkmanager "build-tools;29.0.2" "patcher;v4" "platform-tools" "platforms;android-29" "sources;android-29"]: exit code: 1 ERROR: Service 'flutter' failed to build : Build failed

Solution

RUN cd Android/sdk/tools/bin && ./sdkmanager "build-tools;29.0.2" "platform-tools" "platforms;android-29" "sources;android-29"   RUN cd Android/sdk/tools/bin && ./sdkmanager "build-tools;31.0.0" "platform-tools" "platforms;android-31" "sources;android-31"