2016-08-12 4 views
0

정말 질문이 반복되는 경우 기꺼이 삭제하겠습니다.config.xml malformed Phonegap

응용 프로그램이 빌드되지 않습니다. 내 Config.xml은 기본적으로 제공되므로 실패한 빌드를 얻지 못하는 이유를 이해할 수 없습니다.

<?xml version="1.0" encoding="UTF-8" ?> 
<widget xmlns = "http://www.w3.org/ns/widgets" 
xmlns:gap = "http://phonegap.com/ns/1.0" 
id   = "com.phonegap.rcw" 
version  = "0.0.1" 
versionCode = "1"> 

<preference name="phonegap-version" value="cli-6.3.0" /> 
<preference name="Orientation" value="portrait" /> 

<name>Codes</name> 
<description>Codes for the State</description> 


    <platform name="android"> 
    <icon src="images/Icon.jpg" gap:platform="android" gap:qualifier="ldpi" /> 
    <icon src="images/Icon.jpg" gap:platform="android" gap:qualifier="mdpi" /> 
    <icon src="images/Icon.jpg" gap:platform="android" gap:qualifier="hdpi" /> 
    <icon src="images/Icon.jpg" gap:platform="android" gap:qualifier="xhdpi" /> 
    <icon src="images/Icon.jpg" gap:platform="android" gap:qualifier="xxhdpi" /> 
    <icon src="images/Icon.jpg" gap:platform="android" gap:qualifier="fr-xxhdpi" /> 
</platform> 

<author email="[email protected]"> 
Noah XXXXXXXX 
</author> 

</widget> 

그리고 내가 오류는 다음과 같습니다

Configuration on demand is an incubating feature. 
Incremental java compilation is an incubating feature. 
:preBuild UP-TO-DATE 
:preDebugBuild UP-TO-DATE 
:checkDebugManifest 
:CordovaLib:preBuild UP-TO-DATE 
:CordovaLib:preDebugBuild UP-TO-DATE 
:CordovaLib:compileDebugNdk UP-TO-DATE 
:CordovaLib:compileLint 
:CordovaLib:copyDebugLint UP-TO-DATE 
:CordovaLib:mergeDebugProguardFiles 
:CordovaLib:packageDebugRenderscript UP-TO-DATE 
:CordovaLib:checkDebugManifest 
:CordovaLib:prepareDebugDependencies 
:CordovaLib:compileDebugRenderscript 
:CordovaLib:generateDebugResValues 
:CordovaLib:generateDebugResources 
:CordovaLib:packageDebugResources 
:CordovaLib:compileDebugAidl 
:CordovaLib:generateDebugBuildConfig 
:CordovaLib:mergeDebugShaders 
:CordovaLib:compileDebugShaders 
:CordovaLib:generateDebugAssets 
:CordovaLib:mergeDebugAssets 
:CordovaLib:processDebugManifest 
:CordovaLib:processDebugResources 
:CordovaLib:generateDebugSources 
:CordovaLib:incrementalDebugJavaCompilationSafeguard 
:CordovaLib:compileDebugJavaWithJavac 
:CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
:CordovaLib:processDebugJavaRes UP-TO-DATE 
:CordovaLib:transformResourcesWithMergeJavaResForDebug 
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug 
:CordovaLib:mergeDebugJniLibFolders 
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug 
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug 
:CordovaLib:bundleDebug 
:prepareProjectCordovaLibUnspecifiedDebugLibrary 
:prepareDebugDependencies 
:compileDebugAidl 
:compileDebugRenderscript 
:generateDebugBuildConfig 
:mergeDebugShaders 
:compileDebugShaders 
:generateDebugAssets 
:mergeDebugAssets 
:generateDebugResValues 
:generateDebugResources 
:mergeDebugResources 
:processDebugManifest 
:processDebugResources FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':processDebugResources'. 
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/android-sdk/build-tools/24.0.1/aapt'' finished with non-zero exit value 1 

* 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: 1.64 secs 
Error: /project/gradlew: Command failed with exit code 1 Error output: 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':processDebugResources'. 
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/android-sdk/build-tools/24.0.1/aapt'' finished with non-zero exit value 1 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 
at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23) 
at emitTwo (events.js:87:13) 
at ChildProcess.emit (events.js:172:7) 
at maybeClose (internal/child_process.js:818:16) 
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 

나는 심지어 폰갭 포럼에 제안하고 여전히 운이없는 한 다시 <preference name="phonegap-version" value="cli-5.2.1" />에 압연했습니다.

아마도 빠른 수정. 어떤 도움 ??

+1

안드로이드 SDK를 업데이트하고 시도해보십시오 – Homen

+1

24 API에 대해'android SDK 도구','android SDK Toolkit','SDK 플랫폼 '을 설치했는지 확인하십시오 – Homen

+0

저는 메모장 ++로 코딩하고 있습니다. 그게 여분의 플러그인이나 내가 설치해야 할 거라고) 그리고 난이 동일한 컴퓨터에서 문제없이 일한 2 다른 애플 리케이션을 작성했습니다. –

답변

0

시도 :

$ find your/project/bower-lib/ -type f -name "*.gz" -exec rm -f {} \; 

모두에 .gz 패키지를 삭제, 코르도바는이 파일을 지원하지 않습니다.

관련 문제