Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile for Android; package ... does not exist #29

Closed
jacobobryant opened this issue Oct 6, 2019 · 3 comments
Closed

Can't compile for Android; package ... does not exist #29

jacobobryant opened this issue Oct 6, 2019 · 3 comments

Comments

@jacobobryant
Copy link

Running react-native run-android gives me a bunch of package ... does not exist errors; e.g. these are the first two:

> Task :react-native-firebaseui:compileDebugJavaWithJavac FAILED
Note: [1] Wrote GeneratedAppGlideModule with: []
/home/arch/dev/lagukan/rn/lagukan/node_modules/react-native-firebaseui/android/src/main/java/io/rumors/reactnativefirebaseui/storage/FirebasePhotoViewManager.java:15: error: package com.facebook.yoga does not exist
import com.facebook.yoga.YogaConstants;
                        ^
/home/arch/dev/lagukan/rn/lagukan/node_modules/react-native-firebaseui/android/src/main/java/io/rumors/reactnativefirebaseui/storage/ExtendedPhotoView.java:15: error: package com.facebook.react.views.imagehelper does not exist
import com.facebook.react.views.imagehelper.ResourceDrawableIdHelper;
                                           ^

Any ideas on how to fix this? Maybe it's something similar to capitalone/react-native-pathjs-charts#55? I'm a bit of a newb wrt react native, but I'll try messing around with it some more on Monday.

@erezrokah
Copy link
Member

Hey @jacobobryant and thank you for opening this issue.
I’m currently on vacation and we’ll be able to look at this in about 10 days.
I’ll look into it when I come back.

@jacobobryant
Copy link
Author

Looks like I've figured it out-- I had the following in my build.gradle:

maven {
    url "$rootDir/../node_modules/react-native/android"
    url "https://jitpack.io"
}

Not realizing it was supposed to be like this:

maven { url "$rootDir/../node_modules/react-native/android" }
maven { url "https://jitpack.io" }

There are other compilation issues, but those are just androidx migration errors.

@jacobobryant
Copy link
Author

(For posterity, I fixed the androidx errors by bumping the glide dependency to 4.10.0. Jetifier wasn't handling it because Glide generates code.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants