PhoneGap中文网

 找回密码
 立即注册
查看: 12050|回复: 2
打印 上一主题 下一主题

新手phonegap创建后编译失败,求大神指点

[复制链接]

1

主题

3

帖子

11

积分

新手上路

Rank: 1

积分
11
跳转到指定楼层
楼主
发表于 2015-6-15 11:59:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[phonegap] executing 'cordova platform add --save android'...
[phonegap] completed 'cordova platform add --save android'
[phonegap] 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)

回复

使用道具 举报

4

主题

11

帖子

64

积分

注册会员

Rank: 2

积分
64
沙发
发表于 2015-6-15 13:19:48 | 只看该作者
建议你先配置好 android 环境  , 模拟器能成功启动了。
在配置phonegap。

回复 支持 反对

使用道具 举报

1

主题

3

帖子

11

积分

新手上路

Rank: 1

积分
11
板凳
 楼主| 发表于 2015-6-15 14:23:58 | 只看该作者
岁月如歌 发表于 2015-6-15 13:19
建议你先配置好 android 环境  , 模拟器能成功启动了。
在配置phonegap。

好的,谢谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

ionic4视频教程

Archiver|手机版|小黑屋| PhoneGap中文网 ( 京ICP备13027796号-1 )  

GMT+8, 2025-1-4 20:21 , Processed in 0.067616 second(s), 33 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表