Olá Lucas, ainda não deu certo aqui, mas olha o que aconteceu. Conferi o link que vc me mandou, mas não tive um resultado, coloquei aqueles comandos que são informados naquele link.
Eu estava dando o comando sudo ionic build android então me gerava aquele erro que eu mostrei no titulo deste tópico.
Então conversando com um professor meu, ele identificou que o ocorria um erro de eu estar colocando o sudo na frente dos comandos, quando eu nao colocava o sudo me gerava um erro permissão, procurei na net novamente e fui dando as permissões necessárias para ter acesso sem precisar do sudo, rodei este comando para as permissões.
sudo chown -R $USER nome da pasta ou arquivo
E agora está me voltando um erro, este aqui quando eu tento gerar o sdk com o comando ionic build android:
FAILURE: Build failed with an exception.
*** What went wrong:**
A problem occurred configuring root project ‘android’.
> failed to find target with hash string ‘android-23’ in: /opt/android-sdk
*** Try:**
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 17.228 secs
Error: /home/tiagoaleff/IonicProjects/myApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
*** What went wrong:**
A problem occurred configuring root project ‘android’.
> failed to find target with hash string ‘android-23’ in: /opt/android-sdk
*** Try:**
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Please install Android target: “android-23”.
Hint: Open the SDK manager by running: /home/tiagoaleff/android-sdk-linux/tools/android
You will require:
1. “SDK Platform” for android-23
2. "Android SDK Platform-tools (latest)
3. “Android SDK Build-tools” (latest)
Parece que faltou instalar alguma coisa, vou instalar o android 23 que ele comenta ali. Obrigado pela atençao.