Anmelden

Cordova Build Android - Fehlermeldung ?

1
votes
Views: 895
Beim erstellen einer Android App mit Cordova bekomme ich folgende Fehlermeldung.


```
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> You have not accepted the license agreements of the following SDK components:
[SDK Patch Applier v4, Google Repository, Android Support Repository].
Before building your project, you need to accept the license agreements and comp
lete the installation of the missing components using the Android Studio SDK Man
ager.
Alternatively, to learn how to transfer the license agreements from one workstat
ion to another, go to http://d.android.com/r/studio-ui/export-licenses.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

```

Wie behebe ich diesen Fehler ?
Spam Melden
Löschen
Editieren
Tags:
android, sdk, cordova
Beitrag erstellt am 06 Apr 2017 von
81 Reputation
0 0 0 9 6
1 Antwort
Alt Neu Bewertungen
1
votes
Probier es mal mit:

```
mkdir "%ANDROID_HOME%\licenses"

echo |set /p="8933bad161af4178b1185d1a37fbf41ea5269c55" > "%ANDROID_HOME%\licenses\android-sdk-license"
```

und dann :

```
Cordova build android
```
Spam Melden
Löschen
Editieren
Antwort erstellt am 06 Apr 2017 von
321 Reputation
0 0 0 0 25
Antworten
B
I
H1
Antworten
2016 - 2017 • FragenWissen.com