codelab-friendlychat-android icon indicating copy to clipboard operation
codelab-friendlychat-android copied to clipboard

Error RUN

Open cesiburian opened this issue 4 years ago • 1 comments

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

cesiburian avatar Dec 26 '20 06:12 cesiburian

@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

samtstern avatar Dec 28 '20 12:12 samtstern