I'm building a project, which already have a Firebase instance installed, specifically using library react-native-firebase, which requires me to add firebase-core.
I am not sure if it is the root cause of not being able to properly run the app on Android, but it's the only lead I have right now.
I have build log below:
BUILD LOG
android/build.gradle
ANDROID GRADLE
android/app/build.gradle
APP GRADLE
@jojonarte Hi! Not sure that problematic module is tipsi-stripe. Try to add:
dexOptions {
jumboMode true
preDexLibraries false
}
after
buildTypes {
// ...
}
@isnifer I still get the transform error
https://pastebin.com/bE8Ganac
@jojonarte I don't see any errors related tipsi-stripe, only one warning. Not sure this is a tipsi-stripe related issue.
I can't help you without an example of the app.
@jojonarte did you find a solution for this? I am getting the same error. It builds fine without tipsi-stripe but as soon as I link it i get this error
@danwoodbury Hey here was what I did.
I've reinstalled tipsi-stripe.
I've set up my android/build.gradle like below:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:3.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven {
url "https://jitpack.io"
}
maven {
url "https://maven.google.com"
name "Google"
}
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
ext {
buildToolsVersion = "27.0.3"
minSdkVersion = 16
compileSdkVersion = 27
targetSdkVersion = 27
supportLibVersion = "26.1.0"
googlePlayServicesVersion = "15.0.0"
firebaseVersion = "15.0.2"
}
Then instead of compile used implementation project(':tipsi-stripe')
Thanks @jojonarte! Your solution worked for me. I saw you reopened it, did you have further issues?
@kaloncheung124 I must have double clicked. Should be closed. I'm glad it worked for you.
Most helpful comment
@danwoodbury Hey here was what I did.
I've reinstalled
tipsi-stripe.I've set up my
android/build.gradlelike below:Then instead of compile used
implementation project(':tipsi-stripe')