Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

Ajuda com a geração do APK Android

$
0
0

@eduardosallis30 wrote:

Olá, gostaria de ajuda para resolver um problema durante a construção do APK para Android.
Atualmente estou usando as versões:
Ionic: 4.12.0
JDK: 1.8.0_211
Android SDK esta instalado a versão 5.1 do Android.

Eu criei o projeto, adicionei a plataforma e quando eu executo o comando “ionic cordova build android” o ionic me mostra uma mensagem de erro que não estou conseguindo resolver.
Alguém poderia me ajudar?
Obs.: configurei as variáveis de ambiente no windows, reinstalei tudo novamente e nada de funcionar.

Segue foto da imagem de erro no pront de comando.

Mensagem que aparece:
checking
C:\Users\°°\Desktop\APP\Ionic\myApp>ionic cordova build android

ionic-app-scripts build --target cordova --platform android
[08:23:18] ionic-app-scripts 3.2.2
[08:23:18] build dev started …
[08:23:19] clean started …
[08:23:19] clean finished in 84 ms
[08:23:19] copy started …
[08:23:20] deeplinks started …
[08:23:20] deeplinks finished in 153 ms
[08:23:20] transpile started …
[08:24:24] transpile finished in 63.23 s
[08:24:24] preprocess started …
[08:24:24] preprocess finished in 15 ms
[08:24:24] webpack started …
[08:24:28] copy finished in 68.86 s
[08:25:15] webpack finished in 51.81 s
[08:25:15] sass started …
[08:25:31] sass finished in 15.39 s
[08:25:31] postprocess started …
[08:25:31] postprocess finished in 84 ms
[08:25:31] lint started …
[08:25:31] build dev finished in 133.11 s
[08:26:08] lint finished in 36.75 s
cordova build android
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:\Program Files\Android\android-sdk (DEPRECATED)
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
[ERROR] An error occurred while running subprocess cordova.

    cordova build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more
    information.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>