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

react/PackageList.java:17: error: cannot find symbol #38

Closed
Shashank2406 opened this issue Jul 8, 2019 · 10 comments
Closed

react/PackageList.java:17: error: cannot find symbol #38

Shashank2406 opened this issue Jul 8, 2019 · 10 comments

Comments

@Shashank2406
Copy link

Users/shashank/Desktop/ZendeskAndroid/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:17: error: cannot find symbol
import com.taskrabbit.zendesk.RNZendeskChat.RNZendeskChatPackage;
^
symbol: class RNZendeskChatPackage
location: package com.taskrabbit.zendesk.RNZendeskChat
/Users/shashank/Desktop/ZendeskAndroid/android/app/src/main/java/com/zendeskandroid/MainApplication.java:46: error: cannot find symbol
ZopimChat.init("YOUR_ZENDESK_ACCOUNT_KEY").build();
^
symbol: variable ZopimChat
location: class MainApplication
/Users/shashank/Desktop/ZendeskAndroid/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:51: error: cannot find symbol
new RNZendeskChatPackage()
^
symbol: class RNZendeskChatPackage
location: class PackageList
3 errors

FAILURE: Build failed with an exception.

Facing the above issues when running on android. Any Fix for this?
react-native: 0.60.0

@fbartho
Copy link
Contributor

fbartho commented Jul 8, 2019

React Native 60 has some breaking changes around native modules. All libraries with native android code need to update. You can workaround this by using a tool called “jetifier” but I haven’t tested that with this library yet!

@Shashank2406
Copy link
Author

@fbartho Do you have a working example for android? For me it is working fine on iOS. Trying on react-native: 0.59.0 now.

@fbartho
Copy link
Contributor

fbartho commented Jul 9, 2019

The breaking changes in react-native 60 only affect native Android modules. It’s about migrating to AndroidX so that doesn’t affect iOS.

We are using this library in production on React-native 59, and 58, and below!

@Shashank2406
Copy link
Author

Thanks for the info. It working me now.

@tommynordli
Copy link

How did you get it to work @Shashank2406?

@Shashank2406
Copy link
Author

I used jetifier.

@wktq
Copy link

wktq commented Sep 16, 2019

I still got the same error.
Can I use this repo on Android with RN 0.60 or up now?
or, How can I fix for breaking changes around Android native modules?

@react-native-engineer
Copy link

same issue, I used "npx jetifier" . but same issue.
error: cannot find symbol class RNZendeskChatPackage

@shahbazmancho
Copy link

any luck ?

@fbartho fbartho added this to the 0.3.0: RN 0.62 Support milestone Jan 30, 2020
@fbartho
Copy link
Contributor

fbartho commented Jan 30, 2020

Hey friends! For arriving to this ticket in 2020, I'm happy to announce that we're working on full on RN 0.62 support in this milestone: https://github.com/taskrabbit/react-native-zendesk-chat/milestone/1

We hope to have that shipped in a couple weeks at the latest. And there is a PR with some of that work here: #42

Please feel free to test that PR and file any changes or fixes you need done. Thanks!

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

6 participants