Cloning and trying to run the https://github.com/invertase/react-native-firebase-starter.git does not build on windows for android platform:
git clone ...
npm install
react-native run-android
Noting changed from the initial git template
ADD_SOMETHING_HERE
e.g. iOS 10 or Android API 28N/A
N/A
ADD_SOMETHING_HERE
React Native
version:react-native-cli: 2.0.1
react-native: 0.57.1
React Native Firebase
library version:ADD_SOMETHING_HERE
Firebase
module(s) you're using that has the issue:TypeScript
?N/A
ExpoKit
?ExpoKit
N/A
when trying to build an android app using cordova same error occurs.
on
cordova build android
A problem occurred configuring project ':CordovaLib'.
Could not resolve all files for configuration ':CordovaLib:classpath'.
Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/aapt2-proto/0.3.1/aapt2-proto-0.3.1.jar
I have meet the same problem.
I have the same problem
In build.gradle change position of goolge() and place it first:
How it was before:
buildscript {
repositories {
jcenter()
google()
}
Change to:
buildscript {
repositories {
google()
jcenter()
}
Start Sync and it will ask you to upgrade Build tools.
@vorlan thanks for the solution
@vorlan in which build.gradle, I have to do this change. It's my first project on Android. Thanks in advance.
@Durdush just check all the "build.gradle"s
In build.gradle change position of goolge() and place it first:
How it was before:
buildscript {
repositories {
jcenter()
google()
}Change to:
buildscript {
repositories {
google()
jcenter()
}Start Sync and it will ask you to upgrade Build tools.
Worked for me ....
In build.gradle change position of goolge() and place it first:
How it was before:
buildscript {
repositories {
jcenter()
google()
}Change to:
buildscript {
repositories {
google()
jcenter()
}Start Sync and it will ask you to upgrade Build tools.
Thanks for this, this also worked for me.
The question is - what happened and why does this work? It seems to imply that Google has removed their dependencies from jcenter, but surely this would break all sorts of old builds, and surely they would announce such a change?
Most helpful comment
In build.gradle change position of goolge() and place it first:
How it was before:
buildscript {
repositories {
jcenter()
google()
}
Change to:
buildscript {
repositories {
google()
jcenter()
}
Start Sync and it will ask you to upgrade Build tools.