Ein Fehler ist aufgetreten, Gebäude visual studio cordova-app mit multi-Geräte-hybrid-apps
Bin ich immer 3 schwere Fehler. Ich installiert das android SDK 19 als gut. Irgendwelche Ideen???
An error occurred while listing Android targets
C:\Project\AngularJS_ToDo_Sample_for_Multi-Device_Hybrid_Apps\JavaScript\AngularJSTodo\EXEC 1 1 AngularJSToDo
C:\Users\wil\.cordova\lib\android\cordova\3.4.0\bin\create.bat: Command failed with exit code 8
C:\Project\AngularJS_ToDo_Sample_for_Multi-Device_Hybrid_Apps\JavaScript\AngularJSTodo\EXEC 1 1 AngularJSToDo
The command ""C:\Users\wil\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" prepare --platform Android --configuration Debug --projectDir . --projectName "AngularJSToDo"" exited with code 8.
C:\Users\wil\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets 115 5 AngularJSToDo
Habe ich versucht @Freddy Antwort, sah alles richtig, aber es hat nicht funktioniert. Ich habe diese:
1>------ Build started: Project: BlankCordovaApp2, Configuration: Debug Android ------
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(90,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling.
1> Your environment has been set up for using Node.js 0.10.22 (x64) and npm.
1> ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\ojeaygbd.tal\packages\vs-mda
1> ------ Name from source package.json: vs-mda
1> ------ Version from source package.json: 0.1.1
1> ------ Current globally installed version : 0.1.1
1> ------ Build settings:
1> ------ buildCommand: prepare
1> ------ platform: Android
1> ------ cordovaPlatform: android
1> ------ configuration: Debug
1> ------ cordovaConfiguration: Debug
1> ------ projectName: BlankCordovaApp2
1> ------ projectSourceDir: C:\Project\vsPhoneGap\BlankCordovaApp2
1> ------ Creating app at C:\Project\vsPhoneGap\BlankCordovaApp2\bld\Debug
1> Creating a new cordova project with name "HelloCordova" and id "io.cordova.hellocordova" at location "C:\Project\vsPhoneGap\BlankCordovaApp2\bld\Debug"
1> Using stock cordova hello-world application.
1> cordova library for "www" already exists. No need to download. Continuing.
1> Copying stock Cordova www assets into "C:\Project\vsPhoneGap\BlankCordovaApp2\bld\Debug\www"
1> ------ Copying app files to www
1> ------ Done copying app files to www
1> ------ Copying res files
1> ------ Creating directory: res
1> ------ Done copying res files
1> ------ Adding platform: android
1> cordova library for "android" already exists. No need to download. Continuing.
1> Checking if platform "android" passes minimum requirements...
1> Creating android project...
1> Running command: C:\Users\wil\.cordova\lib\android\cordova\3.4.0\bin\create.bat --cli C:\Project\vsPhoneGap\BlankCordovaApp2\bld\Debug\platforms\android io.cordova.BlankCordovaApp2 BlankCordovaApp2
1>
1> C:\Users\wil\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:126
1> throw e;
1> ^
1>EXEC : error : An error occurred while listing Android targets
1> at C:\Users\wil\.cordova\lib\android\cordova\3.4.0\bin\lib\check_reqs.js:87:29
1> at _rejected (C:\Users\wil\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:808:24)
1> at C:\Users\wil\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:834:30
1> at Promise.when (C:\Users\wil\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:1079:31)
1> at Promise.promise.promiseDispatch (C:\Users\wil\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:752:41)
1> at C:\Users\wil\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:574:44
1> at flush (C:\Users\wil\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\q.js:108:17)
1> at process._tickCallback (node.js:415:13)
1> Command finished with error code 8: C:\Users\wil\.cordova\lib\android\cordova\3.4.0\bin\create.bat --cli,C:\Project\vsPhoneGap\BlankCordovaApp2\bld\Debug\platforms\android,io.cordova.BlankCordovaApp2,BlankCordovaApp2
1>
1> C:\Users\wil\AppData\Roaming\npm\node_modules\vs-mda\node_modules\q\q.js:126
1> throw e;
1> ^
1>EXEC : error : C:\Users\wil\.cordova\lib\android\cordova\3.4.0\bin\create.bat: Command failed with exit code 8
1> at ChildProcess.whenDone (C:\Users\wil\AppData\Roaming\npm\node_modules\vs-mda\node_modules\cordova\src\superspawn.js:126:23)
1> at ChildProcess.EventEmitter.emit (events.js:98:17)
1> at maybeClose (child_process.js:735:16)
1> at Process.ChildProcess._handle.onexit (child_process.js:802:5)
1>C:\Users\wil\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets(115,5): error MSB3073: The command ""C:\Users\wil\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" prepare --platform Android --configuration Debug --projectDir . --projectName "BlankCordovaApp2"" exited with code 8.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
00:03.210 - Failed - Debug Android - BlankCordovaApp2.jsproj
Total build time: 00:00.000
========== : 0 succeeded or up-to-date, 1 failed, 0 skipped, Completed at 5/17/2014 12:01:25 AM ==========
- Dank Freddy hab ich es jetzt bauen und sieht aus wie es funktioniert, aber ich habe diese Fehler. 5/21/2014 12:28:40 UHR: Eine Ausnahme wurde ausgelöst, wenn ausgeführt bundles: System.ArgumentException: Der Pfad ist nicht der Rechtsform. System.IO.Pfad.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) bei System.IO.Pfad.GetFullPathInternal(String path) bei System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption....
Du musst angemeldet sein, um einen Kommentar abzugeben.
War ich immer die gleichen Fehler. Es gibt drei Umgebungsvariablen definiert werden müssen:
1) %JAVA_HOME% -- C:\Program Files (x86)\Java\jdk1.7.0_55
2) %ADT_HOME% -- C:\Users\YOUR_NAME_GOES_HERE\AppData\Local\Android\android-sdk
3) %ANT_HOME% -- C:\apache-ant-1.9.3
HINWEIS -- Die Pfade für diese Programme völlig unterschiedlich sein auf deinem PC - Du musst die install Pfade für jeden.
Sobald Sie definiert haben, werden diese Variablen dann kopieren Sie den Eintrag unten in der Path-variable, die für Ihren Benutzer-account (ich habe an anderer Stelle gelesen, dass es das beste ist, fügen Sie diese an den Anfang des Eintrags und nicht das Ende - das ist, was ich Tat und es funktionierte für mich). PC-Neustart nach änderungen.
*Entnommen aus dem "Installation von 3rd-party-software manuell" - Abschnitt in der offiziellen Dokumentation.
hatte ich dasselbe problem, nach der Installation von Android SDK Build-tool aus dem Android SDK Manager
das problem wurde gelöst,
gehen Sie in das Verzeichnis der Android-SDK
als ...\AppData\Local\Android\android-sdk
offenes SDK Manager.exe
in der Liste der Pakete
Android SDK Build-tools-Paket nicht installieren
und sdk-manager wird automatisch wählen Sie neueste Rev. für Sie, es zu installieren
klicken Sie auf Pakete Installieren
warten Sie, bis es fertig
versuchen, zu bauen-Projekt wieder
und ich habe apk-Dateien im Verzeichnis
.........\bin\Android\Debug
und ich kann es in BlueStacks
sorry mein Englisch ist schlecht . -*-
GEHEN Sie zur Eingabeaufforderung und geben Sie:
Versuchen Sie jetzt, Ihre app sollte Es funktionieren.
Versuchen Sie die folgenden Schritte in der angegebenen Reihenfolge:
Sicherzustellen, dass das Android-SDK installiert ist, unter %localappdata%/Android/android-sdk
Sicherzustellen, dass Android wird aktualisiert, um die neueste API (API 19 zum Zeitpunkt des Schreibens)
Sorgen für die Android-SDK-Pfad ist richtig eingestellt:
Hinzufügen ADT_HOME als Umgebungsvariablen und zeigen Sie es auf die android-sdk-Ordner
Add to System Path: "%ADT_HOME%\tools;%ADT_HOME%\platform-tools"
Starten Sie Ihren Rechner neu
Dies sollte das Problem beheben.
*Entnommen aus dem "Installation von 3rd-party-software manuell" - Abschnitt in den offiziellen Dokumentation.