firebase / codelab-friendlychat-android

Firebase FriendlyChat codelab
Apache License 2.0
244 stars 340 forks source link

Error RUN #136

Open cesiburian opened 3 years ago

cesiburian commented 3 years ago

Hi, i need help. When i was running the starter app, after add google json and sync files, i got error this:

======
Executing tasks: [:build-android-start:app:assembleDebug] in project C:\Users\USER-HP\AndroidStudioProjects\codelab-friendlychat-android

Configuration on demand is an incubating feature.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file 'C:\Users\USER-HP\AndroidStudioProjects\codelab-friendlychat-android\build-android-start\app\build.gradle' line: 2

* What went wrong:
A problem occurred evaluating project ':build-android-start:app'.
> Plugin with id 'com.google.firebase.crashlytics' not found.

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':build-android-start:app'.
> compileSdkVersion is not specified. Please add it to build.gradle

* 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 311ms
samtstern commented 3 years ago

@cesiburian I am not able to reproduce this error. Here are the steps I took:

  1. Clone this repo
  2. cd build-android-start
  3. Add google-services.json to app/
  4. Run ./gradlew assembleDebug

Here are the logs I got:

$ ./gradlew assembleDebug

> Task :app:compileDebugJavaWithJavac
Note: /Users/samstern/Projects/codelab-friendlychat-android/build-android-start/app/src/main/java/com/google/firebase/codelab/friendlychat/MainActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

BUILD SUCCESSFUL in 30s
27 actionable tasks: 22 executed, 5 up-to-date