[Firebase Mobile] Firebase Mobile : Error while generating android application

Forge Component
(19)
Published on 6 Jan by David Sousa
19 votes
Published on 6 Jan by David Sousa

Hi Team,

MABS Version : 5.2

Firebase URL :  https://github.com/TruewindIT/cordova-plugin-firebase#1.6

                          https://github.com/TruewindIT/cordova-plugin-firebase#1.9

I am getting below while generating android application.

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve com.android.support:support-v4:24.1.1+.
  Required by:
      project :app
   > Failed to list versions for com.android.support:support-v4.
      > Unable to load Maven meta-data from s3://risk-manager-android-sdk/artifacts/com/android/support/support-v4/maven-metadata.xml.
         > Could not get resource 's3://risk-manager-android-sdk/artifacts/com/android/support/support-v4/maven-metadata.xml'.
            > Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 84C596F724740342; S3 Extended Request ID: HCAZpuaIrIC61iuSs0O4etrucbCl7d7oks9Ch6vxy3w6NbFIjI82NmjJVRiaD9z9wv70yP85vDg=)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s
/tmp/build/source/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve com.android.support:support-v4:24.1.1+.
  Required by:
      project :app
   > Failed to list versions for com.android.support:support-v4.
      > Unable to load Maven meta-data from s3://risk-manager-android-sdk/artifacts/com/android/support/support-v4/maven-metadata.xml.
         > Could not get resource 's3://risk-manager-android-sdk/artifacts/com/android/support/support-v4/maven-metadata.xml'.
            > Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 84C596F724740342; S3 Extended Request ID: HCAZpuaIrIC61iuSs0O4etrucbCl7d7oks9Ch6vxy3w6NbFIjI82NmjJVRiaD9z9wv70yP85vDg=)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at 
https://help.gradle.org

I have attached error log file for the same

Hi Swapnil Shinde,

Before we dive into gradle issue, I would suggest you to use the plugin version accordingly.

Forge

FirebaseMobile Version 1.0.7 : MABS 6.0 or 6.2

FirebaseMobile Version 1.0.6 : MABS 5.0 or 5.2

You can try with this, coz I used the 1.0.7 with the latest MABS 6.2 & it's working like a charm.

Git
If you are using the custom version from git like #1.6 so as David mention on git, version #1.6 is supported for MABS 6.0, try using https://github.com/TruewindIT/cordova-plugin-firebase#1.5


Refer the git notes from here :

https://github.com/TruewindIT/cordova-plugin-firebase/releases


hope it helps,

Assif

Hi Assif,

Sorry for late reply!

I used same firebase mobile and app identifier in test app the its working fine.

But still issue occurred in main application.

Please help out from this issue