-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ClassNotFoundException: Didn't find class "kotlin.jvm.functions.Function1" #1994
Comments
We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the Feel free to post your Stack Overflow question here for more visibility. We'll take a look at it. For issues with Expo apps, it is most likely not an issue with Detox itself, but with the Expo runtime or with incorrect Detox setup. For support on how to use Detox with Expo, you should contact the Expo team or the Expo community. For more information on bots in this repository, read this discussion. |
@thomas-coinjar please post this on SO and paste a ref here 🙏 |
Hi @d4vidi, I get why you believe that I should post the problem on SO but I still think it's a real problem. Here the reason why: In the official guide how to add Kotlin to the Android Studio project it states that the below code must be added to the module gradle file. For RN it means
So, if I add the line Please keep in mind other third party RN libraries need |
It seems that with Detox we now require |
Hi @d4vidi, Yes I have already upgraded the version to I have reached out to SO but no response yet. It seems the project
I can clearly see the log in the console
Nevertheless Not sure what to do from here. |
Hi @d4vidi, I finally found out that ProGuard is deleting the kotlin files. I will disable it for E2E. |
Describe the bug
I created a release APK
./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release
and installed it on an emulator. The app starts without a problem and
logcat
doesn't show any exceptions.After that I started detox
npx detox test -l error --configuration android.emu.debug
The app starts and the then crashes with the following error
To Reproduce
Steps to reproduce:
./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release
npx detox test -l error --configuration android.emu.debug
android/build.gradle (truncated)
android/app/build.gradle (truncated)
Expected behavior
I expected that the test will start
Screenshots
N/A
Device and Verbose Detox Logs
(see above)
no detox logs
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: