I know that google-services.json must be inside the app directory, my problem is that I don't have this folder, my project folders structure is messy. How can I fix this problem? where I should insert this file? Or if it possible to transform this structure to the default standart android project?, inside this project there is only one build.gradle file
this is error log
Error:Could not find com.google.gms:google-services:3.0.0.
Searched in the following locations:
file:/opt/android-studio/gradle/m2repository/com/google/gms/google-services/3.0.0/google-services-3.0.0.pom
file:/opt/android-studio/gradle/m2repository/com/google/gms/google-services/3.0.0/google-services-3.0.0.jar
Required by:
:linphone-android (copy):unspecified
build.gradle
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.0.0'
}
dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
compile 'com.google.firebase:firebase-messaging:10.2.0'
}
and at the bottom
apply plugin: 'com.google.gms.google-services'
This problem is resolved on this commit: https://github.com/BelledonneCommunications/linphone-android/commit/da76f636ceb06daf28bc4d98db8faa044b90cbee
We just add a check if 'google-services.json' exist or not and add dependencies according with this.