Detox icon indicating copy to clipboard operation
Detox copied to clipboard

:expo-dev-menu:generateDebugLintModel Error during building fro preview

Open Flin-z opened this issue 1 year ago • 6 comments

What happened?

Hi guys hope someone could help regarding the error I've been facing for several days and I've already tried different type of solution found on the internet but i encounter new errors. So I've started creating a new project and copying my files to the new project. but still facing the same error.

:expo-dev-menu:generateDebugLintModel

Task :expo-dev-menu:generateDebugLintModel FAILED

FAILURE: Build failed with an exception.

  • What went wrong: A problem was found with the configuration of task ':expo-dev-menu:generateDebugLintModel' (type 'LintModelWriterTask').
    • Gradle detected a problem with the following location: '/Users/[user-name]/Desktop/Projects/dtrack-app/node_modules/expo-dev-menu/android/src/debug/assets'.

      Reason: Task ':expo-dev-menu:generateDebugLintModel' uses this output of task ':expo-dev-menu:copyAssets' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

      Possible solutions:

      1. Declare task ':expo-dev-menu:copyAssets' as an input of ':expo-dev-menu:generateDebugLintModel'.
      2. Declare an explicit dependency on ':expo-dev-menu:copyAssets' from ':expo-dev-menu:generateDebugLintModel' using Task#dependsOn.
      3. Declare an explicit dependency on ':expo-dev-menu:copyAssets' from ':expo-dev-menu:generateDebugLintModel' using Task#mustRunAfter.

      For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

Currently using the new Architecture SDK 52 using react native 0.77

What was the expected behaviour?

this happened when i execute "./gradlew build". But when i run the project "npm run dev" or "npx expo run:android" I'm trying to run it using the gradlew because i always get error everytime i build it using the "eas build" script I'm almost consume my free monthly build for eas but still getting error when building it.

Was it tested on latest Detox?

  • [x] I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version: React Native version: 52 Has Fabric (React Native's new rendering system) enabled: (yes/no) Node version: Device model: Android version: Test-runner (select one): jest / other

Detox logs

Detox logs
paste logs here!

Device logs

Device logs
paste your device.log here!

More data, please!

No response

Flin-z avatar Feb 10 '25 01:02 Flin-z

I am also receiving the same error, If any one gets the solution, then please tell us

enggsatyamraj avatar Mar 25 '25 09:03 enggsatyamraj

same error

Anees004 avatar Apr 18 '25 15:04 Anees004

Having same problem , any updates on this?

necatisarhanli avatar Apr 22 '25 07:04 necatisarhanli

I got the same error when try to build preview internal app, any update on this issue ?

duynguyenJRGVN avatar May 08 '25 11:05 duynguyenJRGVN

just got this problem after upgrade and downgrade expo and react-native, any update?

futurechallenger avatar May 21 '25 00:05 futurechallenger

I am also fetching the same problem

rakibul-islam-hasib avatar May 26 '25 09:05 rakibul-islam-hasib

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this repository, read this discussion.

stale[bot] avatar Jun 26 '25 19:06 stale[bot]

> Task :expo-dev-menu:generateDebugLintModel FAILED
ASM Instrumentation process wasn't able to resolve some classes, this means that
the instrumented classes might contain corrupt stack frames. Make sure the
dependencies that contain these classes are on the runtime or the provided
classpath. Otherwise, the jvm might fail to load the corrupt classes at runtime
when running in a jvm environment like unit tests.

Classes that weren't resolved:
> androidx.appcompat.view.ContextThemeWrapper
> com.android.billingclient.api.PurchasesUpdatedListener
> com.android.installreferrer.api.InstallReferrerClient
> com.google.common.util.concurrent.ListenableFuture
> javax.naming.NamingException
> javax.naming.directory.Attributes


FAILURE: Build failed with an exception.

muhammadqazi avatar Jun 27 '25 07:06 muhammadqazi

The issue has been closed for inactivity.

stale[bot] avatar Jul 18 '25 18:07 stale[bot]

Having same problem , any updates on this?

anmol-zversal avatar Aug 05 '25 10:08 anmol-zversal