EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 448 forks source link

Could not resolve all files for configuration ':releaseCompileClasspath' #1648

Open HumanRupert opened 4 years ago

HumanRupert commented 4 years ago

Expected Behavior

Build successfully for Android.

Current Behavior

Webpack compilation complete. Watching for file changes.
Webpack build done!
nativescript-plugin-firebase: C:\Users\Hp\Documents\BitBucket\ayneh-mobile-app\platforms\android\.pluginfirebaseinfo not found, forcing prepare!
nativescript-plugin-firebase: running release build or change in environment detected, forcing prepare!

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':javaPreCompileRelease'.
> Could not resolve all files for configuration ':releaseCompileClasspath'.
   > Could not find support-compat.jar (com.android.support:support-compat:28.0.0).
     Searched in the following locations:
         https://maven.google.com/com/android/support/support-compat/28.0.0/support-compat-28.0.0.jar

* 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
Failed to build plugin nativescript-plugin-firebase : 
Error: Command gradlew.bat failed with exit code 1

Context

I've been using nativescript-plugin-firebase for months now, without an issue. But after removing the Android platform, running tns update and updating SDK tools in Android Studio, I can't build anymore.

ENVIRONMENT

node.js: 13.8.0 tns-android: 6.4.1 nativescript: ^6.3.3 vue: ^2.6.11 nativescript-plugin-firebase: ^10.5.0 Android Gradle Plugin: 4.0.1 Gradle: 4.0.1 Android SDK Platform-Tools: 30.0.3 Android SDK Tools: 26.1.1 nativescript-plugin-firebase: ^10.5.0

HumanRupert commented 4 years ago

Replaced this line in include.gradle: implementation "com.android.support:support-compat:$supportVersion" with this: implementation "com.android.support:support-core-utils:$supportVersion" Works properly now.

agil3st commented 3 years ago

Replaced this line in include.gradle: implementation "com.android.support:support-compat:$supportVersion" with this: implementation "com.android.support:support-core-utils:$supportVersion" Works properly now.

where is include.gradle anyway?