-
Notifications
You must be signed in to change notification settings - Fork 509
Android build fails. Apparent conflict with other plugins #507
Comments
+1 |
I have same issue, I could build without any problems until yesterday, since yesterday, i get similar err. (and I didn't change any config files nor added any new plugins etc, basically code was same) |
I face the same problem too after my update to version [email protected] Reverted back to [email protected] which doesn't produce that error Side note: I faced the error while running following command
|
@peterpeterparker cool. I'm a bit of a n00b how do I revert to an older version? ie instead of doing:
what do I do instead? Thanks!!! |
@viking2917 I did the following. First I removed the plugin:
then I added the version number to the cmd line, like
|
@peterpeterparker Super! That is now working for me. I tried it first with the github url scheme, e.g. |
@peterpeterparker I just reverted to v1.7.4 and works fine again! Thanks! |
Same here. I also tried to revert to the 1.8.0 instead but it doesn't build. |
It seems v1.9.0 (current latest) breaks when building Android. While v.1.7.4 works flawlessly. |
According the error 'tools:replace="android:value"' should be added to the Manifest.xml Don't know exactly which values should be marked as to be replaced (android:label?) and how to add that to plugin.xml but I guess that's the pass. A related post: https://stackoverflow.com/questions/25981156/tools-replace-not-replacing-in-android-manifest |
Hi there - so just a note it seems that this is being caused by the wrong version in plugin.xml. I have created a PR which should fix this issue #509. In the meantime, here is an alternative/temporary solution to fixing it, https://stackoverflow.com/a/44311407/1280740, if you need to use the latest version 1.9.0, as opposed to version 1.7.4. |
@jacquesdev thx for your work but unfortunately still doesn't solve the issue :( @jeduan could you plz reopen the issue? (I removed/added the plugin, double checked that I was using version 1.9.1 and even removed/added my cordova platform again to be sure...)
|
@jeduan - see comment here, #497 (comment), perhaps this can also be re-opened? |
@jacquesdev @peterpeterparker reopening this one as the information seems more complete here (don't see value in having 3 duped issues). Reading the errors with attention, this seems like the main problem
and reading Perhaps someone with more android experience can chime in. |
That's spot on, @jeduan . I spent some time doing research on the error, and I seem to have reached the same conclusion as you (although I didn't test). Cross-issue: phonegap/phonegap-plugin-barcodescanner#480 |
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
/*com.android.support:.*?:26.0.0-alpha1*/
if (details.requested.group == 'com.android.support' && details.requested.version == '26.0.0-alpha1') {
details.useVersion '25.3.1'
}
}
} @jacquesdev @peterpeterparker Please try adding that at the end of the build.gradle file at |
Following this as well. I have the same issue |
@fredgalvao thx for idea 👍 I tried it, unfortunately it didn't worked ... but I find out another post on the ionic forum and here's an improved piece of code which let me build successfully my app:
|
Spider... oops I mean @peterpeterparker, I can confirm that works, thank you! I will try and get a pull request in, assuming it's as simple as just updating a build.gradle file in the project. |
Ok, I see it's not just a straightforward change, I guess build.gradle is a generated file. At least we know that it works, hopefully one of the contributors can update, and publish to npm pretty please :) In the meantime I can just manually add this to my project. Thanks all! |
That is a workaround, not a fix. The actual fix needs to come from phonegap/phonegap-plugin-barcodescanner#480. |
@fredgalvao - I don't use that plugin at all, and the issues does not exist when I use facebook4 v 1.7.4. |
@fredgalvao sorry to disagree. First I don't use the phonegap-plugin-barcodescanner and secondly, if I remove version 1.9.1 and install back 1.7.4 I will not find any occurrences of 26.0.0-alpha1 in my all platform, therefore I really think that the dependency to cordova-plugin-compat 26.0.0-alpha1 comes with cordova-plugin-facebook4 1.9.1 @jacquesdev yep it would need a hook. Also the solution is fine but I'm not 100% sure it is the definitive solution coz it won't work at some point in the future I guess (what will happens when 26.0.0-alpha1 gonna turn 26.0.0-alpha2 or official etc.). I didn't find how to solve it, but I'm guessing the solution is to correct the dependency or to follow the warning suggestion
|
@jacquesdev @peterpeterparker Can you test a simple cordova app build that inclues only facebook4 and post the full output from gradle build? I'm very inclined to defend the theory that it's some other plugin. My reasoning is the following:
With that, I can only conclude that facebook4 is okay on version management, and that facebook-sdk itself it also okay on version management. That leads me to thinking other plugins are to blame somehow. It's not uncommon to find plugins with dependencies declared simply as We need a build output from gradle of your project without facebook4, and one with ONLY facebook4, so that we can see which side is touching alpha versions. I can say beforehand that if it happens to be facebook4 the one bringing those versions, I have zero ideas of how to fix it, as it goes against what the declared dependency states. |
PS: facebook-sdk declares its dependencies here. |
@fredgalvao you are right, there is an incompatibility problem due to another plugin in my project too. I created a blank new project and added/compiled one plugin after the other, till I found that the incompatibility comes when I add the plugin cordova.plugins.diagnostic But still, I don't understand why
=> Build KO
=> Build ok |
No, unfortunately not :( I assumed it would, but it did not make a difference - so continuing the search... |
@jacquesdev are you on linux or mac? what's the results of the @fredgalvao cmd?
really nothing? then have you try maybe removing and adding your platform again? maybe some old references were for a strange reason still there... |
I am on mac at the moment, I guess I can test it on my linux machine as well. But yes, no grep results :( I wish they were there... Yup, will clear out everything and test |
@jacquesdev I believe your problem is Try this simple experiment:
However, I think I've found a solution to the problem of 3rd party libaries which don't conform to a common version pinning policy for the support libraries - see my comment here - but in a nutshell, add to the above:
|
@dpa99c - yay, still not quite there yet, but got further than before. This is the error I see now:
|
@jacquesdev This looks to be caused by a similar Gradle collision (going by this issue) but with the Play Services library instead of the support libraries. Might need to create an equivalent plugin for play services: |
@jacquesdev looking at your
|
@dpa99c - the issue seems to be caused by this plugin - https://github.com/MyHealthTeams/google-app-conversion-tracker. When I do remove it seems to build ok. It is 2 years old, and I see Google is changing things around - so may be a good time to get rid of this plugin in any case. So bottom line is that crosswalk was causing the issue for me in any case - and seems like that new plugin seemed to do the trick! Thanks again. |
@jacquesdev I'm late to the party, but anyway: The response you got on danwilson/google-analytics-plugin#427 indicates the base problem between cordova plugins:
I am surprised to see that it was crosswalk the one to blame on your case, @jacquesdev. I use that plugin and some others, and I don't remember seeing it fetch alpha versions recently (I can't confirm it though). |
I remember having the exact same discussion with the Sadly, some plugin authors just don't get how ignorant they behave with their public code. Works for me is not good enough for public repos, imho. But then its free software so who am I to complain. Just fork it, fix the bad gradle setting and be happy. |
@dpa99c, Using GREP, I was never able to locate any instance of Good news though is that using your suggestion of |
The plugin cordova-android-support-gradle-release worked for me but not the last version or any tagged versions. I had to go back to this commit 23f3e6453ed0d24c261475b4892078698a910917 I forked the repo and added a tag to make it easier to install the plugin. I also had to enable multidex, I don't think it's directly related to this facebook plugin. I probably have to many plugins installed. |
@ElieSauveterre The latest release version of the Android support library is v26, so However, v1.0.0 also adds the ability to specify a version using a plugin variable, so in your case you probably want:
|
I was faced same issue in cordova base android code. I used above code , it is working fine . |
@viking2917 I did the following. cordova plugin rm cordova-plugin-facebook4 cordova plugin add [email protected] --save --variable APP_ID="" --variable APP_NAME="" " I did this and the following code: I got a more successful build when I added these lines to the in platforms/android/app/src/main/res/values/strings.xml:
Where APPID is your facebook appid and APPNAME is your facebook app name. You should replace APPID and APPNAME! |
@lucasmls Thanks. But I can get 1.7.4 to build - my problem is with the latest version, which I would like to upgrade to but cannot get it to work. Do your steps work if you do: As described above by various folks, I think the real issue is an incompatibility in the version requirements different plugins require. |
To resolve Android SDK conflicts according your project and plugins you use, you could now specify an Regarding cordova-android@7 this could be solve while adding a Both solutions/tags are documented in the Android guide of the plugin: Therefore I close this issue |
Thanks for keeping up the work on this plugin. I am struggling with this plugin since years and that's why i am very grateful that this is maintained. But: i am still using version 1.7.4 because it doesn't work together with phonegap barcodescanner which i am using too. [email protected] is working without [email protected], [email protected] is working without [email protected] but with [email protected]. I think this is an Android only issue. My setup: [email protected] I am not quite sure what is meant by saying SDK version in https://github.com/jeduan/cordova-plugin-facebook4/blob/master/docs/android/README.md. The version looks like x.yy.z. But i only know Android SDK 19, or 20, or 26. Can anybody provide a working example configuration for using the latest version of barcode scanner and facebook4? @peterpeterparker what are the risks when you say "use on your own risk"? Thanks!! |
@iwan-uschka, @fredgalvao, which maintains the plugin too, he still using v1.7.4 so you might be good (see his last post there #703) About Also that's the most recent topic I know about ANDROID SDK conflict: https://stackoverflow.com/questions/52217275/cordova-plugin-facebook4-couldnt-make-the-app-start-android |
@iwan-uschka When the docs/code mention Those versions, on the X.Y.Z pattern, can be mostly found here: https://developers.facebook.com/docs/android/downloads/ On another topic: the barcodescanner plugin has been updated months ago to support declarative user-based android-support versions, just like this plugin did with the facebook sdk, and just like phonegap-plugin-push did with google-play-services and android-support (those were all issues that arose from the same research me and a few other contributors did a long time ago on the conflicting version problem). https://github.com/phonegap/phonegap-plugin-barcodescanner It should not be an issue anymore. |
Thank both of you for responding so quickly. I wasn't sure about Good to hear, that version 1.7.4 is still a good choice. I just followed @fredgalvao's instructions without any luck. I will create a new issue: #705. |
Expected Behaviour
After installing plugin, Android build should work.
Actual Behaviour
If I install only this plugin, Android build works ok.
From a clean install, if I first install, say, Cordova barcodescanner plugin, build works. If I then install this plugin, build fails with some kind of version conflict (details below).
IOS Builds OK in any case. Weird thing is this was working fine unless yesterday, and I'm not aware what I might have changed. Any idea what might be going wrong?
Error:
/Users/markwatkins/Sites/buildtest2/platforms/android/AndroidManifest.xml:27:9-31 Error:
Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:34 to override.
FAILURE: Build failed with an exception.
Execution failed for task ':processDebugManifest'.
Detailed logs below.
Reproduce Scenario (including but not limited to)
ionic start buildtest2 tabs -> OK
cd buildtest2 -> OK
ionic platform add android -> OK
ionic build android -> OK
cordova plugin add https://github.com/phonegap/phonegap-plugin-barcodescanner.git -> OK
ionic build android -> OK
cordova plugin add https://github.com/jeduan/cordova-plugin-facebook4 --save --variable APP_ID="" --variable APP_NAME="bookFriends" -> OK
ionic build android -> FAILS.
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Marks-Air-2:buildtest2 markwatkins$ ionic plugin list
ionic platformcordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-facebook4 1.8.0 "Facebook Connect"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-barcodescanner 6.0.6 "BarcodeScanner"
{}
Marks-Air-2:buildtest2 markwatkins$ ionic platform
ionic --version
Installed platforms:
android 6.2.3
ios 4.1.1
Available platforms:
blackberry10 ~3.8.0 (deprecated)
browser ~4.1.0
osx ~4.0.1
webos ~3.7.0
Marks-Air-2:buildtest2 markwatkins$ ionic --version
2.2.1
build output:
Marks-Air-2:Sites markwatkins$ cd ~/Sites
Marks-Air-2:Sites markwatkins$ ionic start buildtest2 tabs
Creating Ionic app in folder /Users/markwatkins/Sites/buildtest2 based on tabs project
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================] 100% 0.0s
Installing npm packages...
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No license field.
npm WARN deprecated [email protected]: ..psst! While Bower is maintained, we recommend yarn and webpack for new front-end projects! Please read our blog for more.
npm WARN deprecated [email protected]: Please use gulp-clean-css
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
Cached binary found at /Users/markwatkins/.npm/node-sass/3.13.1/darwin-x64-46_binding.node
Binary found at /Users/markwatkins/Sites/buildtest2/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-46/binding.node
Testing binary
Binary is fine
[email protected] node_modules/gulp-rename
[email protected] node_modules/shelljs
[email protected] node_modules/gulp-concat
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/gulp-minify-css
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/gulp
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
[email protected] node_modules/gulp-util
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/gulp-sass
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
[email protected] node_modules/bower
Adding initial native plugins
Initializing cordova project without CLI
/
Adding in iOS application by default
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/icon-60.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/[email protected]
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/[email protected]
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/icon-76.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/[email protected]
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/icon-small.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/[email protected]
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/icon-40.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/[email protected]
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/[email protected]
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/icon.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/[email protected]
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/icon-72.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/[email protected]
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/icon-50.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/[email protected]
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/icon/[email protected]
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/splash/Default~iphone.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/splash/Default@2x~iphone.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/splash/Default-Portrait~ipad.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/splash/Default-Portrait@2x~ipad.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/splash/Default-Landscape~ipad.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/splash/Default-Landscape@2x~ipad.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/splash/Default-568h@2x~iphone.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/splash/Default-667h.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/splash/Default-736h.png
cp: no such file or directory: /Users/markwatkins/Sites/buildtest2/resources/ios/splash/Default-Landscape-736h.png
add to body class: platform-ios
Downloading: https://github.com/driftyco/ionic-default-resources/archive/master.zip
[=============================] 100% 0.0s
Saving your Ionic app state of platforms and plugins
Saved platform
Saved plugins
Saved package.json
♬ ♫ ♬ ♫ Your Ionic app is ready to go! ♬ ♫ ♬ ♫
Some helpful tips:
Run your app in the browser (great for initial development):
ionic serve
Run on a device or simulator:
ionic run ios[android,browser]
Test and share your app on device with Ionic View:
http://view.ionic.io
Build better Enterprise apps with expert Ionic support:
http://ionic.io/enterprise
New! Add push notifications, live app updates, and more with Ionic Cloud!
https://apps.ionic.io/signup
Marks-Air-2:Sites markwatkins$ cd buildtest2
Marks-Air-2:buildtest2 markwatkins$ ionic platform add android
Using cordova-fetch for cordova-android@~6.2.2
Adding android project...
Creating Cordova project for the Android platform:
Subproject Path: CordovaLib
Android project created with [email protected]
Installing "cordova-plugin-console" for android
Installing "cordova-plugin-device" for android
Installing "cordova-plugin-splashscreen" for android
Installing "cordova-plugin-statusbar" for android
Installing "cordova-plugin-whitelist" for android
Installing "ionic-plugin-keyboard" for android
Running command: /Users/markwatkins/Sites/buildtest2/hooks/after_prepare/010_add_platform_class.js /Users/markwatkins/Sites/buildtest2
add to body class: platform-android
--save flag or autosave detected
Saving android@~6.2.3 into config.xml file ...
Marks-Air-2:buildtest2 markwatkins$ ionic build android
Running command: /Users/markwatkins/Sites/buildtest2/hooks/after_prepare/010_add_platform_class.js /Users/markwatkins/Sites/buildtest2
add to body class: platform-android
ANDROID_HOME=/Users/markwatkins/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
:wrapper
BUILD SUCCESSFUL
Total time: 1.196 secs
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
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
:CordovaLib:preBuild
UP-TO-DATE
:CordovaLib:preDebugBuild
UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugNdk
UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint
UP-TO-DATE
:CordovaLib:mergeDebugShaders
:CordovaLib:compileDebugShaders
:CordovaLib:generateDebugAssets
:CordovaLib:mergeDebugAssets
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:packageDebugRenderscript
UP-TO-DATE
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:generateDebugBuildConfig
: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
:prepareOrgApacheCordovaCordovaLib623DebugLibrary
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
:generateDebugSources
:incrementalDebugJavaCompilationSafeguard
:compileDebugJavaWithJavac
:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: /Users/markwatkins/Sites/buildtest2/platforms/android/src/org/apache/cordova/splashscreen/SplashScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:compileDebugNdk
UP-TO-DATE
:compileDebugSources
:mergeDebugShaders
:compileDebugShaders
:generateDebugAssets
:mergeDebugAssets
:transformClassesWithDexForDebug
:mergeDebugJniLibFolders
:transformNative_libsWithMergeJniLibsForDebug
:processDebugJavaRes
UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug
:validateSigningDebug
:packageDebug
:assembleDebug
:cdvBuildDebug
BUILD SUCCESSFUL
Total time: 3.869 secs
Built the following apk(s):
/Users/markwatkins/Sites/buildtest2/platforms/android/build/outputs/apk/android-debug.apk
Marks-Air-2:buildtest2 markwatkins$ cordova plugin add https://github.com/phonegap/phonegap-plugin-barcodescanner.git
Installing "phonegap-plugin-barcodescanner" for android
Installing "cordova-plugin-compat" for android
ANDROID_HOME=/Users/markwatkins/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
Subproject Path: CordovaLib
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_8skmj347bs9rd4lj8ucy2a2a0.run(/Users/markwatkins/Sites/buildtest2/platforms/android/build.gradle:137)
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.
:clean
:CordovaLib:clean
BUILD SUCCESSFUL
Total time: 1.168 secs
Subproject Path: CordovaLib
Installing "phonegap-plugin-barcodescanner" for ios
Adding phonegap-plugin-barcodescanner to package.json
Saved plugin info for "phonegap-plugin-barcodescanner" to config.xml
Marks-Air-2:buildtest2 markwatkins$
Marks-Air-2:buildtest2 markwatkins$ ionic build android
Running command: /Users/markwatkins/Sites/buildtest2/hooks/after_prepare/010_add_platform_class.js /Users/markwatkins/Sites/buildtest2
add to body class: platform-android
ANDROID_HOME=/Users/markwatkins/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
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
:CordovaLib:compileDebugNdk
UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders
:CordovaLib:compileDebugShaders
:CordovaLib:generateDebugAssets
:CordovaLib:mergeDebugAssets
:CordovaLib:mergeDebugProguardFiles
UP-TO-DATE
:CordovaLib:packageDebugRenderscript
UP-TO-DATE
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:generateDebugBuildConfig
: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:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseNdk
UP-TO-DATE
:CordovaLib:copyReleaseLint
UP-TO-DATE
:CordovaLib:mergeReleaseShaders
:CordovaLib:compileReleaseShaders
:CordovaLib:generateReleaseAssets
:CordovaLib:mergeReleaseAssets
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:packageReleaseRenderscript
UP-TO-DATE
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:generateReleaseBuildConfig
: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
:prepareBarcodescannerLibrary
:prepareComAndroidSupportSupportCompat2600Alpha1Library
:prepareComAndroidSupportSupportCoreUi2600Alpha1Library
:prepareComAndroidSupportSupportCoreUtils2600Alpha1Library
:prepareComAndroidSupportSupportFragment2600Alpha1Library
:prepareComAndroidSupportSupportMediaCompat2600Alpha1Library
:prepareComAndroidSupportSupportV42600Alpha1Library
:prepareOrgApacheCordovaCordovaLib623DebugLibrary
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
:generateDebugSources
:incrementalDebugJavaCompilationSafeguard
:compileDebugJavaWithJavac
:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: /Users/markwatkins/Sites/buildtest2/platforms/android/src/org/apache/cordova/splashscreen/SplashScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:compileDebugNdk
UP-TO-DATE
:compileDebugSources
:mergeDebugShaders
:compileDebugShaders
:generateDebugAssets
:mergeDebugAssets
:transformClassesWithDexForDebug
:mergeDebugJniLibFolders
:transformNative_libsWithMergeJniLibsForDebug
:processDebugJavaRes
UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug
:validateSigningDebug
:packageDebug
:assembleDebug
:cdvBuildDebug
BUILD SUCCESSFUL
Total time: 7.153 secs
Built the following apk(s):
/Users/markwatkins/Sites/buildtest2/platforms/android/build/outputs/apk/android-debug.apk
Marks-Air-2:buildtest2 markwatkins$ cordova plugin add https://github.com/jeduan/cordova-plugin-facebook4 --save --variable APP_ID="" --variable APP_NAME="bookFriends"
Installing "cordova-plugin-facebook4" for android
ANDROID_HOME=/Users/markwatkins/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
Subproject Path: CordovaLib
BUILD SUCCESSFUL
Total time: 1.334 secs
Subproject Path: CordovaLib
Installing "cordova-plugin-facebook4" for ios
Adding cordova-plugin-facebook4 to package.json
Saved plugin info for "cordova-plugin-facebook4" to config.xml
Marks-Air-2:buildtest2 markwatkins$ ionic build android
Running command: /Users/markwatkins/Sites/buildtest2/hooks/after_prepare/010_add_platform_class.js /Users/markwatkins/Sites/buildtest2
add to body class: platform-android
ANDROID_HOME=/Users/markwatkins/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
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
:CordovaLib:compileDebugNdk
UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint
UP-TO-DATE
:CordovaLib:mergeDebugShaders
:CordovaLib:compileDebugShaders
:CordovaLib:generateDebugAssets
:CordovaLib:mergeDebugAssets
:CordovaLib:mergeDebugProguardFiles
UP-TO-DATE
:CordovaLib:packageDebugRenderscript
UP-TO-DATE
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:generateDebugBuildConfig
: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:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseNdk
UP-TO-DATE
:CordovaLib:copyReleaseLint
UP-TO-DATE
:CordovaLib:mergeReleaseShaders
:CordovaLib:compileReleaseShaders
:CordovaLib:generateReleaseAssets
:CordovaLib:mergeReleaseAssets
:CordovaLib:mergeReleaseProguardFiles
UP-TO-DATE
:CordovaLib:packageReleaseRenderscript
UP-TO-DATE
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:generateReleaseBuildConfig
: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
:prepareBarcodescannerLibrary
:prepareComAndroidSupportAnimatedVectorDrawable2531Library
:prepareComAndroidSupportAppcompatV72531Library
:prepareComAndroidSupportCardviewV72531Library
:prepareComAndroidSupportCustomtabs2531Library
:prepareComAndroidSupportSupportCompat2600Alpha1Library
:prepareComAndroidSupportSupportCoreUi2600Alpha1Library
:prepareComAndroidSupportSupportCoreUtils2600Alpha1Library
:prepareComAndroidSupportSupportFragment2600Alpha1Library
:prepareComAndroidSupportSupportMediaCompat2600Alpha1Library
:prepareComAndroidSupportSupportV42600Alpha1Library
:prepareComAndroidSupportSupportVectorDrawable2531Library
:prepareComFacebookAndroidFacebookAndroidSdk4230Library
:prepareOrgApacheCordovaCordovaLib623DebugLibrary
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
:processDebugManifest
/Users/markwatkins/Sites/buildtest2/platforms/android/AndroidManifest.xml:27:9-31 Error:
Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
:processDebugManifest FAILED
FAILURE: Build failed with an exception.
Execution failed for task ':processDebugManifest'.
Run with --stacktrace option to get the stack trace. Run with
--info or --debug option to get more log output.
BUILD FAILED
Total time: 4.751 secs
Error: /Users/markwatkins/Sites/buildtest2/platforms/android/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.
/Users/markwatkins/Sites/buildtest2/platforms/android/AndroidManifest.xml:27:9-31 Error:
Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:34 to override.
FAILURE: Build failed with an exception.
Execution failed for task ':processDebugManifest'.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Marks-Air-2:buildtest2 markwatkins$ history
...
511 cd ~/Sites
512 ionic start buildtest2 tabs
513 cd buildtest2
514 ionic platform add android
515 ionic build android
516 cordova plugin add https://github.com/phonegap/phonegap-plugin-barcodescanner.git
517 history
518 ionic build android
519 cordova plugin add https://github.com/jeduan/cordova-plugin-facebook4 --save --variable APP_ID="" --variable APP_NAME="bookFriends"
520 ionic build android
521 history
Marks-Air-2:buildtest2 markwatkins$
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
The text was updated successfully, but these errors were encountered: