-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
New error on android build since 06-05-2019 #1057
Comments
+1 |
Same here. Tried to use cordova-play-services-gradle-release plugin (with + and 15.+) without success. |
+1 Same problem here.. any suggestion? |
i think this error is related to this. |
@ejlodero I get the same error. I wonder why this is happening as this plugin is not updated since last year |
@ejlodero I get the same error, I am looking in my graddle but I dont see that dependencies, some body found something? |
Same here, when trying to build android. After a search at google I found following answer: as the FirebaseInstanceIdService deprecated. |
Hi, i have the same problem |
+1 |
3 similar comments
+1 |
+1 |
+1 |
i have the same problem.... |
Same issue here, any hint? |
Same problem. |
Same problem |
same problem |
2 similar comments
same problem |
same problem |
have the same problem |
Here is a quick fix if you guys can't wait for new plugin update release. |
Same problem here |
This is due to the firebase updates on April 05. Here https://firebase.google.com/support/release-notes/android#update_-_april_02_2019, I found the last working versions and adjusted my project.properties accordingly like so
Here all dependencies are locked to the specific version (Update - April 02, 2019) instead of Now I can build successfully! Hope it helps! |
where will you find project.properties |
Thanks @fjckls , it worked!! |
@fjckls I've tried your fix, and the Gradle sync will work but building the app still throws the errors for as given by topic starter where it cannot find the methods from Firebase. |
I succeeded in rewrite |
i got two errors, Failed to resolve: com.google.firebase:firebase-messaging:17.5
exactly, my reply was wrong but yeah thats what i put, still error |
you forgot to add the final bit of it. |
Using ionic v1 you can update: plugins/cordova-plugin-firebase/plugin.xml
(add "15." before "+") and file plugins/cordova-plugin-firebase/src/android/build.gradle
(same add "15." before "+") then remove android platform and readd it i'm not convinced it's the best fix so i won't do a PR, but at least it fixes the problem for now, hope it helps! |
I am getting error : |
can someone help i am tried fixed but not working? |
can you please write complete solution? so it will help everyone. |
@sagrawal31 thanks let me try |
@sagrawal31 thanks a lot. finally it is working. simply i am using your old version plugin with latest platform :
|
I made these changes and got another error stemming from this change: `FAILURE: Build failed with an exception. What went wrong: |
Using @punksta's solution I had still this message when building my Ionic app: I identified new dependencies to set by running Here is the updated build-extras.gradle I came up with: def dependencyMap = [
"com.google.firebase:firebase-core" : "16.0.8",
"com.google.firebase:firebase-perf": "16.2.4",
"com.google.firebase:firebase-messaging": "17.5.0",
"com.google.firebase:firebase-config": "16.4.1",
"com.google.firebase:firebase-iid": "17.1.1",
"com.google.firebase:firebase-auth": "16.2.0",
"com.google.android.gms:play-services-tagmanager": "16.0.8"
]
ext.postBuildExtras = {
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def group = details.requested.group
def name = details.requested.name
def fullName = group + ":" + name
if (dependencyMap.containsKey(fullName)) {
println 'Forcing version ' + dependencyMap[fullName] + ' for ' + fullName
details.useVersion dependencyMap[fullName]
}
}
}
} To have more details about how to use this file, please refer to the original solution here |
@remifleurance |
Failed to fetch plugin https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue via registry. npm ERR! A complete log of this run can be found in: |
the solution is to don't use this plugin anymore (as is not maintened), and replace it with cordova-plugin-firebase-lib (a fork with several fixes):
|
@remifleurance You fix worked well. However now I'm getting:
Any idea? |
@pbrisson def dependencyMap = [
"com.google.firebase:firebase-core" : "16.0.8",
"com.google.firebase:firebase-perf": "16.2.4",
"com.google.firebase:firebase-messaging": "17.5.0",
"com.google.firebase:firebase-config": "16.4.1",
"com.google.firebase:firebase-iid": "17.1.1",
"com.google.firebase:firebase-auth": "16.2.0",
"com.google.android.gms:play-services-tagmanager": "16.0.8"
]
ext.postBuildExtras = {
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
/* Note this new section */
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '26.1.0'
}
}
def group = details.requested.group
def name = details.requested.name
def fullName = group + ":" + name
if (dependencyMap.containsKey(fullName)) {
println 'Forcing version ' + dependencyMap[fullName] + ' for ' + fullName
details.useVersion dependencyMap[fullName]
}
}
}
} Also |
Thanks @remifleurance Turns out it was another plugin causing the issue (old version of pushwoosh-cordova-plugin). Thanks for all your help! Your initial solution is working. |
This was the solution in my case |
Hi All,
I am able to build debug APK but as soon as i add --prod and --release tag it gives following error:
Please help in getting this resolved. I am not able to push my app updates since last 2 months because of this. |
After doing that I get the following error for which I can't find any solutions. Do you have any advice?
I use the following plugins:
|
Ionic 4 with Angular cordova plugin Firebase not work in ionic 4 with Angular project BUILD FAILED
|
I tried to use this solution but it doesn't work. I create a blank angular app. I just try to add this plugin : --> Build failed |
cordova plugin add cordova-plugin-firebase-lib@3.3.0 --save |
see arnesson#1057 (comment) pinned to latest known-good versions
Following worked for me. target=android-28 |
@AlejandroSilva :i tried ur solution but in got another error in the console : T
|
Describe the bug
Were having a new error on cordova build android since about 3 hours ago (06-05-2019 16:00:00). On a same build that passed this noon..
To Reproduce
Steps to reproduce the behavior:
Using these depency :
"dependencies": {
"@vimeo/player": "^2.8.2",
"android-versions": "^1.4.0",
"autoprefixer": "^9.5.1",
"aws-sdk": "^2.446.0",
"browser-sync": "^2.26.4",
"cordova-browser": "^6.0.0",
"cordova-ios": "^5.0.1",
"cordova-plugin-app-version": "^0.1.9",
"cordova-plugin-customconfigparameters": "^3.0.0",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-file-downloader": "^0.4.0",
"cordova-plugin-file-md5": "^0.3.3",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-firebase": "git+https://github.com/arnesson/cordova-plugin-firebase.git",
"cordova-plugin-inappbrowser": "^3.0.0",
"cordova-plugin-network-information": "^2.0.1",
"cordova-plugin-splashscreen": "git+https://github.com/apache/cordova-plugin-splashscreen.git",
"cordova-plugin-statusbar": "git+https://github.com/apache/cordova-plugin-statusbar.git",
"cordova-plugin-streaming-media": "^2.2.0",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-plugin-zip": "^3.1.0",
"cordova-support-google-services": "^1.1.0",
"del": "^4.1.0",
"express": "^4.16.4",
"gameanalytics": "^3.1.2",
"graceful-fs": "^4.1.15",
"gulp-concat": "^2.6.1",
"gulp-copy": "^4.0.1",
"gulp-eslint": "^5.0.0",
"gulp-install": "^1.1.0",
"gulp-kit": "^0.3.0",
"gulp-postcss": "^8.0.0",
"gulp-rename": "^1.4.0",
"gulp-sass": "^4.0.2",
"gulp-sourcemaps": "^2.6.5",
"gulp-uglify": "^3.0.2",
"nativescript-gameanalytics": "^2.1.2",
"node-properties-parser": "0.0.2",
"phonegap-plugin-multidex": "^1.0.0",
"properties-parser": "^0.3.1",
"sqli-cordova-disk-space-plugin": "~1.0.2",
"vimeo": "^2.1.1"
},
Run Cordova build android and we get an error.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: