-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build #178
Comments
@albertleao your plugin version is actually 1.1.0 in your example even though you specified that you are using plugin version 2.0.7 I too have been getting the same error when moving to Cordova Android 10. I found that |
Yep, got it. I created a branch and updated the framework source for both frameworks that were not found.
The problem now is that the Try building off this guy and at least the first 2 errors are gone
My new package.json
|
I see @zafirskthelifehacker had a pull request to simply remove the simple storage framework. I have no idea whether or not this works. Going to give it a shot |
And the answer to that question is no Looks like this repo might be SOL if there's not a decent mirror for the simple storage library |
What do we thing an alternative is? |
I will spend some more time tonight and tomorrow. At this point I'd love to hear from the maintainers as it seems that anyone who clears out or starts a new android project is hosed. I was unable to get gradle to point to other repositories that may have the required framework. |
Hi @albertleao, {
"name": "com.test.app",
"displayName": "test-app",
"version": "1.0.0",
"description": "A sample Apache Cordova application that responds to the deviceready event.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"ecosystem:cordova"
],
"author": "Apache Cordova Team",
"license": "Apache-2.0",
+ "dependencies": {
+ "@spoonconsulting/cordova-plugin-background-upload": "2.0.7"
+},
"devDependencies": {
"cordova-android": "^10.1.1",
"cordova-plugin-androidx": "^1.0.2",
"cordova-plugin-androidx-adapter": "^1.1.0",
- "cordova-plugin-background-upload": "^1.1.0",
},
"cordova": {
"platforms": [
"android"
],
"plugins": {
- "cordova-plugin-background-upload": {}
+ "@spoonconsulting/cordova-plugin-background-upload": {}
}
},
"dependencies": {} |
I had upgraded to using Gradle 7.1.1 (from 5.6.3) and found repositories.gradle had changed from: Had read about JCenter shutdown and impact on Gradle builds, is this part of the issue? |
@hughknaus it built this way? |
Yeah, it built that way... I didn't modify it any way. We have experimented with adding jcenter() back in but not fully convinced that it solves everything... still trying to get a build through our CI/CD system. |
I readded jcenter to my gradle repositories and am still getting the error. |
Our whole goal has been to upgrade to SDK Version 30, far from our ideal path, we updated We successfully built, but we are now having issues in the app so not a win per se. We tried 2.0.3 without and with |
@dinitri-ragoo for your successful builds with the cordova-plugin-background-upload, can you provide the following versions you are using in your build process:
Working with @hughknaus, we've found we have to add the jCenter() repo back into repositories.gradle in order to get past the errors specified above for the following: These are needed with cordova-plugin-background-upload@latest which I believe translates to version v1.1.0 |
My gradle.repositories:
build.gradle
Running
Still running into issues finding all packages now:
If you could share how you got it to build it would be much appreciated. |
Hello @albertleao @hughknaus @bruffster, Make sure that you are using SDK 31 and also v2.0.7 of the plugin. cordova: 10.0.0 (CLI) We are targeting SDK version 31 in the config.xml: Also make sure you have Regards, |
@zafirskthelifehacker when you say "Also make sure you have |
@zafirskthelifehacker Followed your advice. Are you having to use Failed to install '@spoonconsulting/cordova-plugin-background-upload': Error: There was a conflict trying to modify attributes with in plugin @spoonconsulting/cordova-plugin-background-upload. The conflicting plugin, undefined, already modified the same attributes. The conflict must be resolved before @spoonconsulting/cordova-plugin-background-upload can be added. You may use --force to add the plugin and overwrite the conflicting attributes. |
@schematical to add jcenter() in we are using a before_build hook to overwrite |
@zafirskthelifehacker @dinitri-ragoo we are also seeing errors in logs when trying to upload an image on Android 11+ (Android 10 is working though): 2022-02-10 09:43:31.886 8432-8533/appname D/SERVER: Handling local request: http://localhost/83-es2015.811b6353bcb7a5829b14.js |
I got it to build but now I am not getting the callback to fire at the end. Possibly related to #109 ? Logcat would make me think the upload was successful(and the file is uploaded) but no callback.
|
Further testing, I'm running into the same issue in #179 using 2.0.7, I have |
Everything seems to be working for me when using |
Found that in the package.json this package had to be moved higher in the list of plugins and I'm now able to build and run. |
@hughknaus How's it going for you? My upload is working on android but none of my callbacks are ever being fired. When you say you moved it higher in the package.json, are you installing this plugin via npm or via the cordova plugin add command? |
Thank you so much for the info Hugh. I believe we had better luck with ios just working. Once I get android working I will give some feedback |
@hughknaus Got my ios to build and upload, but none of the callbacks are working. I fixed my callback issue on android by ensure i called .destroy() after every upload. |
Have had this plugin working for a while but recently ran into an issue where I cannot get my app to build anymore. I created a fresh app and tried to build with just this plugin and I'm still failing.
Cordova cli version 11.0.0
Android version 10.1.1
Plugin version 2.0.7
Error:
FAILURE: Build failed with an exception.
Package.json
gradle.properties
The text was updated successfully, but these errors were encountered: