Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio cordova Visual Studio Cordova无法在android上构建_Visual Studio Cordova - Fatal编程技术网

Visual studio cordova Visual Studio Cordova无法在android上构建

Visual studio cordova Visual Studio Cordova无法在android上构建,visual-studio-cordova,Visual Studio Cordova,在将代码构建到android设备时,我在输出时遇到以下错误 1>------ Clean started: Project: Shhh...ItWorks, Configuration: Debug Android ------ 1> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk 1> JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55 1> Runni

在将代码构建到android设备时,我在输出时遇到以下错误

1>------ Clean started: Project: Shhh...ItWorks, Configuration: Debug Android ------
1>  ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
1>  JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
1>  Running: C:\app\TW Secret\11232015\Shhh...ItWorks_\Shhh...ItWorks\platforms\android\gradlew clean -b C:\app\TW Secret\11232015\Shhh...ItWorks_\Shhh...ItWorks\platforms\android\build.gradle -Dorg.gradle.daemon=true
1>
1>  FAILURE: Build failed with an exception.
1>
1>  * What went wrong:
1>  A problem occurred configuring root project 'android'.
1>  > Could not resolve all dependencies for configuration ':_debugCompile'.
1>     > Could not find any version that matches com.android.support:support-v13:23+.
1>       Searched in the following locations:
1>           https://repo1.maven.org/maven2/com/android/support/support-v13/maven-metadata.xml
1>           https://repo1.maven.org/maven2/com/android/support/support-v13/
1>       Required by:
1>           :android:unspecified
1>     > Could not find any version that matches com.google.android.gms:play-services-gcm:+.
1>       Searched in the following locations:
1>           https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/maven-metadata.xml
1>           https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/
1>       Required by:
1>           :android:unspecified
1>
1>  * Try:
1>  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
1>
1>  BUILD FAILED
1>
1>  Total time: 2.267 secs
1>  Picked up _JAVA_OPTIONS: -Xmx512M
1>
1>  C:\app\TW Secret\11232015\Shhh...ItWorks_\Shhh...ItWorks\platforms\android\cordova\node_modules\q\q.js:126
1>                      throw e;
1>                            ^
1>  Error code 1 for command: cmd with args: /s /c ""C:\app\TW Secret\11232015\Shhh...ItWorks_\Shhh...ItWorks\platforms\android\gradlew" clean -b "C:\app\TW Secret\11232015\Shhh...ItWorks_\Shhh...ItWorks\platforms\android\build.gradle" -Dorg.gradle.daemon=true"
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(354,5): error MSB3073: The command "platforms\android\cordova\clean.bat" exited with code 1.
========== Clean: 0 succeeded, 1 failed, 0 skipped ==========
当我尝试清理解决方案时,它显示以下错误:

Severity    Code    Description Project File    Line
Error   MSB3073 The command "platforms\android\cordova\clean.bat" exited with code 1.   Shhh...ItWorks  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets   
我用的是Cordova 5.3.3
有人知道如何解决这个问题吗?

在逐个删除并重新安装插件后,我发现推送插件与本地通知插件冲突,删除一个或另一个解决问题:

嘿,一个简单的“空白”模板项目是否从VS成功部署到您的android设备上?部署到Ripple怎么样?是不是只有设备坏了?您使用的是什么版本的VS?