Closed daniele777 closed 6 years ago
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do not need this plugin since the whitelist will be built in.
This is simply a warning message from cordova-plugin-whitelist
and has nothing to do with this plugin or a failed build. Please post the full build log.
https://build.phonegap.com/ i create my build here... after package create wit intel xdk
Fetching plugin "cordova-plugin-crosswalk-webview@1.8.0" via npm Installing "cordova-plugin-crosswalk-webview" at "1.8.0" for android Fetching plugin "cordova-plugin-statusbar@2.2.3" via npm Installing "cordova-plugin-statusbar" at "2.2.3" for android Fetching plugin "cordova-plugin-device@1.1.6" via npm Installing "cordova-plugin-device" at "1.1.6" for android Fetching plugin "cordova-plugin-splashscreen@4.0.3" via npm Installing "cordova-plugin-splashscreen" at "4.0.3" for android Fetching plugin "cordova-plugin-network-information@1.3.3" via npm Installing "cordova-plugin-network-information" at "1.3.3" for android Fetching plugin "cordova-plugin-dialogs@1.3.3" via npm Installing "cordova-plugin-dialogs" at "1.3.3" for android Fetching plugin "cordova-plugin-compat@1.0.0" via npm Installing "cordova-plugin-compat" at "1.0.0" for android Fetching plugin "cordova-plugin-geolocation@2.4.3" via npm Installing "cordova-plugin-geolocation" at "2.4.3" for android Plugin dependency "cordova-plugin-compat@1.0.0" already fetched, using that version. Dependent plugin "cordova-plugin-compat" already installed on android. Fetching plugin "cordova-plugin-globalization@1.0.7" via npm Installing "cordova-plugin-globalization" at "1.0.7" for android Fetching plugin "https://github.com/dpa99c/cordova-diagnostic-plugin.git" via git clone Using shallow clone Repository "https://github.com/dpa99c/cordova-diagnostic-plugin.git" checked out to git ref "master" at "0a03c35". Installing "cordova.plugins.diagnostic" at "4.0.0" for android Fetching plugin "cordova-plugin-whitelist@1.2.2" via npm Installing "cordova-plugin-whitelist" at "1.2.2" for android
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
null org.xwalk:xwalk_core_library:19+ :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:generateDebugAssets UP-TO-DATE :CordovaLib:mergeDebugAssets :CordovaLib:processDebugManifest :CordovaLib:processDebugResources :CordovaLib:generateDebugSources :CordovaLib:compileDebugJavaWithJavacNote: 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:generateReleaseAssets UP-TO-DATE :CordovaLib:mergeReleaseAssets :CordovaLib:processReleaseManifest :CordovaLib:processReleaseResources :CordovaLib:generateReleaseSources :CordovaLib:compileReleaseJavaWithJavacNote: 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 :prepareComAndroidSupportAnimatedVectorDrawable2600Alpha1Library :prepareComAndroidSupportAppcompatV72600Alpha1Library :prepareComAndroidSupportSupportCompat2600Alpha1Library :prepareComAndroidSupportSupportCoreUi2600Alpha1Library :prepareComAndroidSupportSupportCoreUtils2600Alpha1Library :prepareComAndroidSupportSupportFragment2600Alpha1Library :prepareComAndroidSupportSupportMediaCompat2600Alpha1Library :prepareComAndroidSupportSupportV42600Alpha1Library :prepareComAndroidSupportSupportVectorDrawable2600Alpha1Library :prepareOrgXwalkXwalk_core_library19495145Library :prepareProjectCordovaLibUnspecifiedReleaseLibrary :prepareReleaseDependencies :compileReleaseAidl :compileReleaseRenderscript :generateReleaseBuildConfig :generateReleaseAssets UP-TO-DATE :mergeReleaseAssets :createXwalkCommandLineFileRelease :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 '/opt/android-sdk/build-tools/27.0.2/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: 10.207 secs undefined
Thank you for help!
But not release apk... if i remove plugin .. build was ok..
The cause is a Gradle version collision caused by another plugin requesting a different version of the Android Support Library (see #218, #211, #205, etc.).
The first easiest fix to try is installing cordova-android-support-gradle-release into your project to align the versions. Otherwise you'll need to manually align the version in the build.gradle
and any other Gradle files that other plugins install.
Closing as this is not directly caused by this plugin but is an artefact of the Cordova Android build process.
Repository "https://github.com/dpa99c/cordova-diagnostic-plugin.git" checked out to git ref "master" at "0a03c35". Installing "cordova.plugins.diagnostic" at "4.0.0" for android Fetching plugin "cordova-plugin-whitelist@1.2.2" via npm Installing "cordova-plugin-whitelist" at "1.2.2" for android
Can i fix????
I'm submitting a ... (check one with "x"):
Bug report
Current behavior:
Expected behavior:
Steps to reproduce:
Environment information
cordova -v
cordova platform ls
cordova plugin ls
sw_vers
winver
Runtime issue
Android build issue:
node -v
ls platforms/android/.gradle
android:targetSdkVersion
inAndroidManifest.xml
sdkmanager --list | sed -e '/Available Packages/q'
iOS build issue:
node -v
If using an [Ionic Native Typescript wrapper]() for this plugin:
ionic info
npm list | grep "@ionic-native"
Related code:
Console output
console output
``` // Paste any relevant JS/native console output here ```**Other information:** # Feature request # Documentation issue