Page 1 of 1

Ionic Run Android führt keine App auf dem Gerät aus

Posted: 03 Apr 2025, 05:04
by Anonymous
Ich bin neu in Ionic und versuche, eine Beispiel -App von Ionic auf meinem Telefon auszuführen ( Samsung Galaxy S4 ) und ich kann dies nicht tun. Ich habe bereits "USB -Debugging" in Entwickleroptionen. < /p>

Wie oben angezeigt, obwohl mein Telefon angeschlossen ist, wird es auf Emulator ausgeführt. Die App funktioniert auf Emulator ohne ein Problem < /p>

Wenn ich < /p>

tue$ionic run android
< /code>

In Protokollen heißt es: < /p>

No target specified and deploying to emulator
< /code>

Der Emulator erscheint und hat keine Probleme beim Ausführen der App.$adb devices -l
< /code>

Es wird mein Gerät xxx < /code> dort aufgeführt.$ionic run --devices
< /code>

Es sagt: Unbekannte Plattform: xxx < /code> < /p>

Ich habe es versucht, < /p>

$ionic run -d 'XXX'
< /code>

Es löst Fehler < /p>

ausCordovaError: Unknown platform : XXX at cli .....
< /code>

Ich habe sogar versucht, eine Run -Konfigurationsdatei zu definieren, die das Ziel angibt, die Ergebnisse sind jedoch ähnlich. Es wirft Fehler bei q.js aus.Target 'XXX' not found, unable to run project.
< /code>

Kann jemand bitte beraten, welchen Schritt ich verpasst habe? < /p>