-
-
Notifications
You must be signed in to change notification settings - Fork 254
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
Android Import not working in MainActivity.java #204
Comments
I have the same issue. |
same here 😔 |
@kobagapu @tomLadder @maxhaider Details please? Which version? |
@zoontek Versions: |
@maxhaider Did you do a Gradle sync / a cache clean? |
yes |
@maxhaider Are you opening Android studio on the /android directory (not the root one!) |
yes of course x) |
@maxhaider I said that because I just tried it with a fresh project (RN 0.63.4, RN-bootsplash 3.1.3) and everything went fine. |
If it worked before the rollback and as the dependencies from npm doesn't change, this cannot be related to the lib. |
🤔 Just ran react-native-clean-project, it sadly didn't solve the problem. |
@maxhaider The issue is probably with the cloned project then. Which RN does it use? |
v0.63.4 |
Try with a fresh project and compare it to this existing project then. |
Update: The problem is, the splashscreen doesn't disappear now. edit: |
The module seems not being linked. Something is wrong in your (auto)linking config |
I'm having the same problem in 3.1.4, and could fix it by adding the manual linking config to settings.gradle:
This project has yarn workspaces, and some extra resolver config in metro.config.js to find dependencies in other places, but I'd be surprised if that's the cause. We have many other RN packages and this is the only one which doesn't autolink correctly on Android. RN does add |
@adapptor-kurt Did it worked on previous versions? And did it continue to happen when your rollback? This might be related to a change in react-native-cli: https://github.com/react-native-community/cli I need to investigate, but I cannot reproduce it with a clean project. |
@zoontek it seems to have resolved itself now. I have been switching branches so it's difficult to know what fixed it, but I would recommend anyone having this problem try an Invalidate Caches/Restart in Android Studio and/or a git clean. |
I'm closing this since it seems impossible to reproduce. |
With version 4.3.2, I encounter the same issue. Indeed, just adding the config in settings.gradle solved the problem. Doing the whole manual linking process causes a package declaration duplication error |
import com.zoontek.rnbootsplash.RNBootSplash;
IOS Working fine
The text was updated successfully, but these errors were encountered: