codelab-friendlychat-android
codelab-friendlychat-android copied to clipboard
Error RUN
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 I am not able to reproduce this error. Here are the steps I took:
- Clone this repo
- cd
build-android-start
- Add
google-services.json
toapp/
- 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