新手phonegap创建后编译失败,求大神指点
executing 'cordova platform add --save android'...completed 'cordova platform add --save android'
executing 'cordova build android'...
cp: no such file or directory: E:\eclipse\workspace\myapp\icon.png
Running command: E:\eclipse\workspace\myapp\platforms\android\cordova\build.bat
ANDROID_HOME=D:\Program Files\Android\sdk
JAVA_HOME=D:\Program Files\Java\java sdk 1.8
Running: E:\eclipse\workspace\myapp\platforms\android\gradlew cdvBuildDebug -b E
:\eclipse\workspace\myapp\platforms\android\build.gradle -Dorg.gradle.daemon=tru
e
:preBuild
:compileDebugNdk
:preDebugBuild
:checkDebugManifest
:CordovaLib:compileLint
:CordovaLib:copyDebugLint
UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:preBuild
:CordovaLib:preDebugBuild
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugBuildConfig
:CordovaLib:generateDebugAssets
UP-TO-DATE
:CordovaLib:mergeDebugAssets
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJava
ע: ijЩ�����ļ�ʹ�û�����ѹ�ʱ�� API��
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
:CordovaLib:processDebugJavaRes
UP-TO-DATE
:CordovaLib:packageDebugJar
:CordovaLib:compileDebugNdk
:CordovaLib:packageDebugJniLibs
UP-TO-DATE
:CordovaLib:packageDebugLocalJar
UP-TO-DATE
:CordovaLib:packageDebugRenderscript
UP-TO-DATE
:CordovaLib:bundleDebug
:prepareAndroidCordovaLibUnspecifiedDebugLibrary
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugAssets
UP-TO-DATE
:mergeDebugAssets
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
:processDebugManifest
E:\eclipse\workspace\myapp\platforms\android\AndroidManifest.xml:15:5 Error:
uses-sdk:minSdkVersion 7 cannot be smaller than version 10 declared in l
ibrary E:\eclipse\workspace\myapp\platforms\android\build\intermediates\exploded
-aar\android\CordovaLib\unspecified\debug\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="org.apache.cordova" to force usag
e
FAILED
FAILURE:
Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than versi
on 10 declared in library E:\eclipse\workspace\myapp\platforms\android\build\int
ermediates\exploded-aar\android\CordovaLib\unspecified\debug\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="org.apache.cordova" to force usag
e
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 34.266 secs
E:\eclipse\workspace\myapp\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "E:\eclipse\workspace\myapp\platf
orms\android\gradlew cdvBuildDebug -b E:\eclipse\workspace\myapp\platforms\andro
id\build.gradle -Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error: E:\eclipse\workspace\myapp\platforms
\android\cordova\build.bat: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: E:\eclipse\workspace\myapp\platforms\android\cordova\build.bat: Command f
ailed with exit code 1
at ChildProcess.whenDone (C:\Users\XP-PCP\AppData\Roaming\npm\node_modules\p
honegap\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:
131:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
建议你先配置好 android 环境, 模拟器能成功启动了。
在配置phonegap。
岁月如歌 发表于 2015-6-15 13:19
建议你先配置好 android 环境, 模拟器能成功启动了。
在配置phonegap。
好的,谢谢{:4_86:}
页:
[1]