0
本当に繰り返し質問があれば、私は喜んで削除します。config.xmlが不正な形式の電話帳
アプリケーションは構築されません。私の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)
私もPhoneGapのフォーラムで提案されるようにバック<preference name="phonegap-version" value="cli-5.2.1" />
にロールしようと、まだ運を持っていません。
おそらく簡単な修正です。どんな助け?
あなたのアンドロイドSDKを更新してみてください – Homen
24のAPIのために 'android SDK tools'、 'android sdk platform tools'、' SDK platform'をインストールしたことを確認してください – Homen
私はNotepad ++でコーディングしていますそれが余分なプラグインか何かをインストールする必要があるなら)、私は問題のないこの同じコンピュータから働いた2つの他のアプリを書いた。 –