2017-01-23 21 views
2

我能够建立应用程序的罚款,但今天我得到了错误,在一个问题上面提到。 Phonegap不在构建应用程序。我没有做任何改变,可能会导致错误。从今天起两天前它工作正常。我已经添加了所有的堆栈跟踪。 我是新来的,不能得到它。Phonegap应用程序不在建设中。错误“哦,geez你的建设失败”

Build Date: 2017-01-23 08:25:36 +0000 
Configuration on demand is an incubating feature. 
Incremental java compilation is an incubating feature. 
:preBuild UP-TO-DATE 
:preReleaseBuild UP-TO-DATE 
:checkReleaseManifest 
:preDebugBuild UP-TO-DATE 
: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 
:CordovaLib:preReleaseBuild UP-TO-DATE 
:CordovaLib:compileReleaseNdk UP-TO-DATE 
:CordovaLib:copyReleaseLint UP-TO-DATE 
:CordovaLib:mergeReleaseProguardFiles 
:CordovaLib:packageReleaseRenderscript UP-TO-DATE 
:CordovaLib:checkReleaseManifest 
:CordovaLib:prepareReleaseDependencies 
:CordovaLib:compileReleaseRenderscript 
:CordovaLib:generateReleaseResValues 
:CordovaLib:generateReleaseResources 
:CordovaLib:packageReleaseResources 
:CordovaLib:compileReleaseAidl 
:CordovaLib:generateReleaseBuildConfig 
:CordovaLib:mergeReleaseShaders 
:CordovaLib:compileReleaseShaders 
:CordovaLib:generateReleaseAssets 
:CordovaLib:mergeReleaseAssets 
:CordovaLib:processReleaseManifest 
:CordovaLib:processReleaseResources 
:CordovaLib:generateReleaseSources 
:CordovaLib:incrementalReleaseJavaCompilationSafeguard 
:CordovaLib:compileReleaseJavaWithJavac 
:CordovaLib:compileReleaseJavaWithJavac - 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:processReleaseJavaRes UP-TO-DATE 
:CordovaLib:transformResourcesWithMergeJavaResForRelease 
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease 
:CordovaLib:mergeReleaseJniLibFolders 
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease 
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease 
:CordovaLib:bundleRelease 
:prepareComAndroidSupportAnimatedVectorDrawable2510Library 
:prepareComAndroidSupportAppcompatV72510Library 
:prepareComAndroidSupportSupportCompat2510Library 
:prepareComAndroidSupportSupportCoreUi2510Library 
:prepareComAndroidSupportSupportCoreUtils2510Library 
:prepareComAndroidSupportSupportFragment2510Library 
:prepareComAndroidSupportSupportMediaCompat2510Library 
:prepareComAndroidSupportSupportV132340Library 
:prepareComAndroidSupportSupportV42510Library 
:prepareComAndroidSupportSupportVectorDrawable2510Library 
:prepareComGoogleAndroidGmsPlayServicesBase980Library 
:prepareComGoogleAndroidGmsPlayServicesBasement980Library 
:prepareComGoogleAndroidGmsPlayServicesGcm980Library 
:prepareComGoogleAndroidGmsPlayServicesIid980Library 
:prepareComGoogleAndroidGmsPlayServicesTasks980Library 
:prepareMeLeolinShortcutBadger114Library 
:prepareProjectCordovaLibUnspecifiedReleaseLibrary 
:prepareReleaseDependencies 
:compileReleaseAidl 
:compileReleaseRenderscript 
:generateReleaseBuildConfig 
:mergeReleaseShaders 
:compileReleaseShaders 
:generateReleaseAssets 
:mergeReleaseAssets 
:generateReleaseResValues 
:generateReleaseResources 
:mergeReleaseResources 
:processReleaseManifest 
:processReleaseResources/project/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'. 


/project/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'. 

FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':processReleaseResources'. 
> 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: 3.371 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. 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
/project/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'. 

/project/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'. 


FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':processReleaseResources'. 
> 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:106:13) 
    at ChildProcess.emit (events.js:191:7) 
    at maybeClose (internal/child_process.js:877:16) 
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 
+0

编译SDK版本?构建工具版本?可能是不匹配。 –

+0

问题已解决!!! – argo

+0

你是如何设法解决它的?请发布答案,以便我可以从中学习。谢谢! – MagicDragon

回答

0

在应用程序中有一个旧版本的phonegap“cli”导致构建失败。一旦你更新你的phonegap cli版本,例如最新版本:cli-6.4.0,如果有人遇到以上问题,可以使用phonegap轻松构建应用程序。

相关问题