Я получаю сообщение об ошибке «Не удалось выполнить задачу»: processDebugResources ». запустить sudo cordova build android --prod " - PullRequest
0 голосов
/ 05 марта 2020

ЭТО МОЯ ОШИБКА !!

ANDROID_HOME=/Users/projeto/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home
Subproject Path: CordovaLib
Running command: /Users/projeto/myApp/platforms/android/gradlew cdvBuildDebug -b /Users/projeto/myApp/platforms/android/build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true
+-----------------------------------------------------------------
| cordova-android-support-gradle-release: 27.1.0
+-----------------------------------------------------------------
WARNING: The onesignal-gradle-plugin MUST be before com.android.application!
   Please put onesignal-gradle-plugin first OR update to com.android.tools.build:gradle:3.0.0 or newer!
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_3oov1fqc0xpdypwew86mvz2wl.run(/Users/projeto/myApp/platforms/android/build.gradle:145)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:preReleaseBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint UP-TO-DATE
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl UP-TO-DATE
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseShaders UP-TO-DATE
:CordovaLib:compileReleaseShaders UP-TO-DATE
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles UP-TO-DATE
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:compileReleaseRenderscript UP-TO-DATE
:CordovaLib:generateReleaseResValues UP-TO-DATE
:CordovaLib:generateReleaseResources UP-TO-DATE
:CordovaLib:packageReleaseResources UP-TO-DATE
:CordovaLib:processReleaseManifest UP-TO-DATE
:CordovaLib:generateReleaseBuildConfig UP-TO-DATE
:CordovaLib:processReleaseResources UP-TO-DATE
:CordovaLib:generateReleaseSources UP-TO-DATE
:CordovaLib:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:compileReleaseJavaWithJavac UP-TO-DATE
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:CordovaLib:mergeReleaseJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:CordovaLib:bundleRelease UP-TO-DATE
:prepareAndroidArchCoreRuntime110Library UP-TO-DATE
:prepareAndroidArchLifecycleLivedataCore110Library UP-TO-DATE
:prepareAndroidArchLifecycleRuntime110Library UP-TO-DATE
:prepareAndroidArchLifecycleViewmodel110Library UP-TO-DATE
:prepareAndroidxArchCoreCoreRuntime200Library UP-TO-DATE
:prepareAndroidxAsynclayoutinflaterAsynclayoutinflater100Library UP-TO-DATE
:prepareAndroidxCoordinatorlayoutCoordinatorlayout100Library UP-TO-DATE
:prepareAndroidxCoreCore100Library UP-TO-DATE
:prepareAndroidxCursoradapterCursoradapter100Library UP-TO-DATE
:prepareAndroidxCustomviewCustomview100Library UP-TO-DATE
:prepareAndroidxDocumentfileDocumentfile100Library UP-TO-DATE
:prepareAndroidxDrawerlayoutDrawerlayout100Library UP-TO-DATE
:prepareAndroidxFragmentFragment100Library UP-TO-DATE
:prepareAndroidxInterpolatorInterpolator100Library UP-TO-DATE
:prepareAndroidxLegacyLegacySupportCoreUi100Library UP-TO-DATE
:prepareAndroidxLegacyLegacySupportCoreUtils100Library UP-TO-DATE
:prepareAndroidxLifecycleLifecycleLivedata200Library UP-TO-DATE
:prepareAndroidxLifecycleLifecycleLivedataCore200Library UP-TO-DATE
:prepareAndroidxLifecycleLifecycleRuntime200Library UP-TO-DATE
:prepareAndroidxLifecycleLifecycleViewmodel200Library UP-TO-DATE
:prepareAndroidxLoaderLoader100Library UP-TO-DATE
:prepareAndroidxLocalbroadcastmanagerLocalbroadcastmanager100Library UP-TO-DATE
:prepareAndroidxPrintPrint100Library UP-TO-DATE
:prepareAndroidxSlidingpanelayoutSlidingpanelayout100Library UP-TO-DATE
:prepareAndroidxSwiperefreshlayoutSwiperefreshlayout100Library UP-TO-DATE
:prepareAndroidxVersionedparcelableVersionedparcelable100Library UP-TO-DATE
:prepareAndroidxViewpagerViewpager100Library UP-TO-DATE
:prepareComAndroidSupportCardviewV72711Library UP-TO-DATE
:prepareComAndroidSupportCustomtabs2711Library UP-TO-DATE
:prepareComAndroidSupportSupportCompat2711Library UP-TO-DATE
:prepareComAndroidSupportSupportCoreUi2711Library UP-TO-DATE
:prepareComAndroidSupportSupportCoreUtils2711Library UP-TO-DATE
:prepareComAndroidSupportSupportFragment2711Library UP-TO-DATE
:prepareComAndroidSupportSupportMediaCompat2711Library UP-TO-DATE
:prepareComAndroidSupportSupportV42711Library UP-TO-DATE
:prepareComFacebookAndroidFacebookAndroidSdk4141Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAnalytics1101Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl1101Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAuth1700Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAuthApiPhone1700Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAuthBase1700Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBase1700Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBasement1700Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesFitness1601Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesIdentity1700Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesLocation1600Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesPlacesPlacereport1600Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesTagmanagerV4Impl1101Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesTasks1700Library UP-TO-DATE
:prepareComGoogleFirebaseFirebaseCommon1201Library UP-TO-DATE
:prepareComGoogleFirebaseFirebaseCommonLicense1201Library UP-TO-DATE
:prepareComGoogleFirebaseFirebaseIid1201Library UP-TO-DATE
:prepareComGoogleFirebaseFirebaseIidLicense1201Library UP-TO-DATE
:prepareComGoogleFirebaseFirebaseMessaging1201Library UP-TO-DATE
:prepareComGoogleFirebaseFirebaseMessagingLicense1201Library UP-TO-DATE
:prepareComOnesignalOneSignal3111Library UP-TO-DATE
:prepareMeLeolinShortcutBadger1122Library UP-TO-DATE
:prepareOrgApacheCordovaCordovaLib630DebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources/Users/projeto/myApp/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:93: AAPT: No resource identifier found for attribute 'appComponentFactory' in package 'android'

warning: string 'menu_settings' has no default translation.
/Users/projeto/myApp/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:93: error: No resource identifier found for attribute 'appComponentFactory' in package 'android'


 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

* 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.936 secs
Command finished with error code 1: /Users/projeto/myApp/platforms/android/gradlew cdvBuildDebug,-b,/Users/projeto/myApp/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
/Users/projeto/myApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/projeto/myApp/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:93: AAPT: No resource identifier found for attribute 'appComponentFactory' in package 'android'

warning: string 'menu_settings' has no default translation.
/Users/projeto/myApp/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:93: error: No resource identifier found for attribute 'appComponentFactory' in package 'android'



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: /Users/projeto/myApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/projeto/myApp/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:93: AAPT: No resource identifier found for attribute 'appComponentFactory' in package 'android'

warning: string 'menu_settings' has no default translation.
/Users/projeto/myApp/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:93: error: No resource identifier found for attribute 'appComponentFactory' in package 'android'



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (/Users/projeto/myApp/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at ChildProcess.emit (events.js:223:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:430:11)
    at Socket.emit (events.js:223:5)
    at Pipe.<anonymous> (net.js:664:12)
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...