Describe the bug
I have followed the setup process and I am able use detox build but when I try detox run, app opens and then nothing happens, and after sometimes(or when I run the app again from android studio) I get the following error, please help
Steps to reproduce:
Expected behavior
App should open and test should run successfully
Logs:
detox test -c android.emu.debug
detox[8346] INFO: [test.js] configuration="android.emu.debug" reportSpecs=true readOnlyEmu=false useCustomLogger=true forceAdbInstall=false DETOX_START_TIMESTAMP=1594976838527 node_modules/.bin/jest --config e2e/config.json '--testNamePattern=^((?!:ios:).)*$' --maxWorkers 1 e2e
detox[8347] INFO: [DetoxServer.js] server listening on localhost:59685...
RUNS e2e/firstTest.e2e.js
RUNS e2e/firstTest.e2e.js
RUNS e2e/firstTest.e2e.js
nothing happens after this and at times I get the following report
detox[8347] ERROR: DetoxRuntimeError: Failed to run application on the device
HINT: Most likely, your tests have timed out and called detox.cleanup() while it was waiting for "ready" message (over WebSocket) from the instrumentation process.
detox[8347] INFO: App is assigned to undefined
detox[8347] INFO: App: should have welcome screen
detox[8347] INFO: App: should have welcome screen [SKIPPED]
detox[8347] WARN: [Client.js/PENDING_REQUESTS] App has not responded to the network requests below:
(id = -1000) isReady: {}
Unresponded network requests might result in timeout errors in Detox tests.
detox[8346] ERROR: [cli.js] Error: Command failed: node_modules/.bin/jest --config e2e/config.json '--testNamePattern=^((?!:ios:).)*$' --maxWorkers 1 e2e
test
describe('App', () => {
beforeEach(async () => {
await device.reloadReactNative();
});
it('should have welcome screen', async () => {
await expect(element(by.id('welcome'))).toBeVisible();
});
});
config.json
{
"testEnvironment": "./environment",
"testRunner": "jest-circus/runner",
"testTimeout": 120000,
"testRegex": "\.e2e\.js$",
"reporters": ["detox/runners/jest/streamlineReporter"],
"verbose": true
}
.detoxsrc.json
{
"testRunner": "jest",
"runnerConfig": "e2e/config.json",
"configurations": {
"android.emu.debug": {
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
"build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
"type": "android.emulator",
"device": {
"avdName": "Pixel_OREO_API_26"
}
},
"android.emu.release": {
"binaryPath": "android/app/build/outputs/apk/release/app-release.apk",
"build": "cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..",
"type": "android.emulator",
"device": {
"avdName": "Pixel_OREO_API_26"
}
}
}
}
Environment:
The fix was in the master but not released yet. a43bee2f5cea9dde0ad37e257c36b87cb3a3b7b7
@d4vidi Can you release new version to fix android RN 0.63.x?
Released in 17.2.1, please close the issue if it works for you!
I still see the same error in the newer version. I have a similar issue on iOS.
@guhungry @d4vidi Not working, same behaviour, can you please check out my project and debug the issue if it is not a big ask, here is the repo link(https://github.com/ganeshpadhayay/react-native-clean-testing-architecture), it is a basic sample app, should not take more than 2 minutes to figure out
Here are my own log files if they help
android-detox.txt
ios-detox.txt
@guhungry @d4vidi Not working, same behaviour, can you please check out my project and debug the issue if it is not a big ask, here is the repo link(https://github.com/ganeshpadhayay/react-native-clean-testing-architecture), it is a basic sample app, should not take more than 2 minutes to figure out
When I test with --configuration android.emu.release


So it's a different problem that I fix but it prove that my fix works in React Native 0.63.x android.
I think this error comes from the fact that recommend detox setup use aar library instead of compile from source. So it need properly proguard rules for aar library.
https://github.com/wix/Detox/issues?q=is%3Aissue+proguard+is%3Aclosed
Excellent input. Please have a look at #1994
@guhungry @d4vidi Thank you so much for taking out time to debug my project. I was testing my debug configuration(detox test --configuration android.emu.debug) this whole time so did not try the release build. For the release build, I shall try your solution. Can you check the issue with the debug build as it will not have any proguard mapping?
@guhungry @d4vidi Thank you so much for taking out time to debug my project. I was testing my debug configuration(detox test --configuration android.emu.debug) this whole time so did not try the release build. For the release build, I shall try your solution. Can you check the issue with the debug build as it will not have any proguard mapping?
Debug build also works for me. Did you start packager before you run "detox test"?

@guhungry I am new to react native so I don't understand what do you mean by start packager before running "detox test". I normally follow these set of instructions,

And, when I run my app from Android studio after sometime, I get the following error,

Can you note down your exact steps that you used to run the tests on my project? Thanks.
I'm also encountering this issue, I've added console.logs in our beforeAll function (which executes await detox.init(config)) and it doesn't log the console.log after that detox.init call.
This only happens on Android, the iOS tests run just fine
After several minutes, this shows up in the logs.

@ganeshpadhayay I suspect that you run test with old Detox 17.2.0. package-lock.json#L3653-L3655
Can you run command below to check actual version you are using?
cat package-lock.json | grep detox
You should see something like this
"detox": {
"resolved": "https://registry.npmjs.org/detox/-/detox-16.2.1.tgz",
If it is not 17.2.1 or above please run commands below
rm package-lock.json
rm -rf node_modules/
npm install
npm start -- --reset-cache
detox build -c android.emu.debug
detox test -c android.emu-debug
@guhungry Yes, your suspicion was right, I was using old detox 17.2.0. The set of commands mentioned by you worked in resolving this. Closing this.
To whom it may concern, I expect for the official support for RN 0.63 to be released in 17.3.3. Stay tuned.
@d4vidi I have the same issue

on ^17.4.5 release
I'm wondering if this has to do with enabling hermes engine or turbo modules for react-native-reaniamted@2alpha ?
logs @d4vidi
--------- beginning of main
09-05 23:11:03.254 19653 19653 I nit.fishbowlap: Not late-enabling -Xcheck:jni (already on)
09-05 23:11:03.289 19653 19653 E nit.fishbowlap: Unknown bits set in runtime_flags: 0x8000
09-05 23:11:03.291 19653 19653 W nit.fishbowlap: Unexpected CPU variant for X86 using defaults: x86
--------- beginning of system
09-05 23:11:03.375 19653 19653 W ActivityThread: Package uses different ABI(s) than its instrumentation: package[com.init.fishbowlapp]: x86, null instrumentation[com.init.fishbowlapp.test]: null, null
09-05 23:11:03.383 19653 19653 I nit.fishbowlap: The ClassLoaderContext is a special shared library.
09-05 23:11:03.608 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 2 lines
09-05 23:11:03.609 19653 19653 I nit.fishbowlap: The ClassLoaderContext is a special shared library.
09-05 23:11:03.759 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:04.247 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 5 lines
09-05 23:11:04.247 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:04.399 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:05.251 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 10 lines
09-05 23:11:05.252 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:05.394 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:06.188 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 14 lines
09-05 23:11:06.189 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:06.301 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:07.168 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 12 lines
09-05 23:11:07.169 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:07.269 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:07.269 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:07.375 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:08.250 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 12 lines
09-05 23:11:08.251 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:08.444 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:09.235 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 10 lines
09-05 23:11:09.236 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:09.379 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:09.947 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 8 lines
09-05 23:11:09.951 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:10.122 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:10.122 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:10.335 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:10.337 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:10.531 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:11.248 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 10 lines
09-05 23:11:11.249 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:11.404 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:12.241 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 12 lines
09-05 23:11:12.241 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:12.347 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:13.258 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 18 lines
09-05 23:11:13.258 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:13.355 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:13.776 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 8 lines
09-05 23:11:13.781 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:13.877 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:14.277 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 8 lines
09-05 23:11:14.278 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:14.378 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:15.198 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 16 lines
09-05 23:11:15.199 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:15.297 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:15.395 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 2 lines
09-05 23:11:15.395 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:15.498 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:15.499 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:15.618 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:15.724 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 2 lines
09-05 23:11:15.725 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:15.832 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:16.220 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 8 lines
09-05 23:11:16.221 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:16.322 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:17.198 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 18 lines
09-05 23:11:17.199 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:17.293 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:17.294 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:17.391 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:18.268 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 18 lines
09-05 23:11:18.269 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:18.367 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:19.246 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 18 lines
09-05 23:11:19.247 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:19.343 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:19.446 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 2 lines
09-05 23:11:19.447 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:19.542 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:20.219 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 14 lines
09-05 23:11:20.222 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:20.318 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:21.297 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 20 lines
09-05 23:11:21.299 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:21.396 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:21.396 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:21.491 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:22.179 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 14 lines
09-05 23:11:22.180 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:22.273 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:22.273 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:22.369 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:22.467 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 2 lines
09-05 23:11:22.468 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:22.568 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:23.235 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 14 lines
09-05 23:11:23.236 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:23.333 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:24.311 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 20 lines
09-05 23:11:24.312 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:24.407 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:25.013 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 13 lines
09-05 23:11:25.109 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: Cannot load class. Make sure it is in your apk. Class name: 'com.facebook.imagepipeline.stetho.BaseFrescoStethoPlugin'. Message: com.facebook.imagepipeline.stetho.BaseFrescoStethoPlugin
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: java.lang.ClassNotFoundException: com.facebook.imagepipeline.stetho.BaseFrescoStethoPlugin
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at java.lang.Class.classForName(Native Method)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at java.lang.Class.forName(Class.java:454)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource.createPackageInfo(ClassPathPackageInfoSource.java:93)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource.access$000(ClassPathPackageInfoSource.java:37)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource$1.load(ClassPathPackageInfoSource.java:50)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource$1.load(ClassPathPackageInfoSource.java:47)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.SimpleCache.get(SimpleCache.java:32)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource$ClassPathPackageInfo.getSubpackages(ClassPathPackageInfoSource.java:230)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource$ClassPathPackageInfo.addTopLevelClassesTo(ClassPathPackageInfoSource.java:243)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource$ClassPathPackageInfo.getTopLevelClassesRecursive(ClassPathPackageInfoSource.java:237)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource$ClassPathPackageInfo.access$100(ClassPathPackageInfoSource.java:214)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource.getTopLevelClassesRecursive(ClassPathPackageInfoSource.java:77)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.suitebuilder.TestGrouping.testCaseClassesInPackage(TestGrouping.java:134)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.suitebuilder.TestGrouping.addPackagesRecursive(TestGrouping.java:110)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.suitebuilder.TestSuiteBuilder.includePackages(TestSuiteBuilder.java:102)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.test.InstrumentationTestRunner.onCreate(InstrumentationTestRunner.java:377)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6452)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.app.ActivityThread.access$1300(ActivityThread.java:219)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.os.Handler.dispatchMessage(Handler.java:107)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.os.Looper.loop(Looper.java:214)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at android.app.ActivityThread.main(ActivityThread.java:7356)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at java.lang.reflect.Method.invoke(Native Method)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: Caused by: java.lang.ClassNotFoundException: com.facebook.imagepipeline.stetho.BaseFrescoStethoPlugin
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at java.lang.VMClassLoader.findLoadedClass(Native Method)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: ... 25 more
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/stetho/dumpapp/DumperPlugin;
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: ... 25 more
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.stetho.dumpapp.DumperPlugin" on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/android.test.mock.jar", zip file "/data/app/com.init.fishbowlapp.test-VtH31efUbjrbzVRo0RzFLQ==/base.apk", zip file "/data/app/com.init.fishbowlapp-Vze0yTTg5i6SkZGPrrbG2Q==/base.apk"],nativeLibraryDirectories=[/data/app/com.init.fishbowlapp.test-VtH31efUbjrbzVRo0RzFLQ==/lib/x86, /data/app/com.init.fishbowlapp-Vze0yTTg5i6SkZGPrrbG2Q==/lib/x86, /data/app/com.init.fishbowlapp.test-VtH31efUbjrbzVRo0RzFLQ==/base.apk!/lib/x86, /data/app/com.init.fishbowlapp-Vze0yTTg5i6SkZGPrrbG2Q==/base.apk!/lib/x86, /system/lib, /system/product/lib]]
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
09-05 23:11:25.116 19653 19653 W ClassPathPackageInfoSource: ... 25 more
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: Cannot load class. Make sure it is in your apk. Class name: 'com.facebook.imagepipeline.stetho.FrescoStethoPlugin'. Message: com.facebook.imagepipeline.stetho.FrescoStethoPlugin
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: java.lang.ClassNotFoundException: com.facebook.imagepipeline.stetho.FrescoStethoPlugin
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at java.lang.Class.classForName(Native Method)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at java.lang.Class.forName(Class.java:454)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource.createPackageInfo(ClassPathPackageInfoSource.java:93)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource.access$000(ClassPathPackageInfoSource.java:37)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource$1.load(ClassPathPackageInfoSource.java:50)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource$1.load(ClassPathPackageInfoSource.java:47)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.SimpleCache.get(SimpleCache.java:32)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource$ClassPathPackageInfo.getSubpackages(ClassPathPackageInfoSource.java:230)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource$ClassPathPackageInfo.addTopLevelClassesTo(ClassPathPackageInfoSource.java:243)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource$ClassPathPackageInfo.getTopLevelClassesRecursive(ClassPathPackageInfoSource.java:237)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource$ClassPathPackageInfo.access$100(ClassPathPackageInfoSource.java:214)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.ClassPathPackageInfoSource.getTopLevelClassesRecursive(ClassPathPackageInfoSource.java:77)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.suitebuilder.TestGrouping.testCaseClassesInPackage(TestGrouping.java:134)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.suitebuilder.TestGrouping.addPackagesRecursive(TestGrouping.java:110)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.suitebuilder.TestSuiteBuilder.includePackages(TestSuiteBuilder.java:102)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.test.InstrumentationTestRunner.onCreate(InstrumentationTestRunner.java:377)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6452)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.app.ActivityThread.access$1300(ActivityThread.java:219)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.os.Handler.dispatchMessage(Handler.java:107)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.os.Looper.loop(Looper.java:214)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at android.app.ActivityThread.main(ActivityThread.java:7356)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at java.lang.reflect.Method.invoke(Native Method)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: Caused by: java.lang.ClassNotFoundException: com.facebook.imagepipeline.stetho.FrescoStethoPlugin
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at java.lang.VMClassLoader.findLoadedClass(Native Method)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: ... 25 more
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/stetho/dumpapp/DumperPlugin;
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: ... 25 more
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.stetho.dumpapp.DumperPlugin" on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/android.test.mock.jar", zip file "/data/app/com.init.fishbowlapp.test-VtH31efUbjrbzVRo0RzFLQ==/base.apk", zip file "/data/app/com.init.fishbowlapp-Vze0yTTg5i6SkZGPrrbG2Q==/base.apk"],nativeLibraryDirectories=[/data/app/com.init.fishbowlapp.test-VtH31efUbjrbzVRo0RzFLQ==/lib/x86, /data/app/com.init.fishbowlapp-Vze0yTTg5i6SkZGPrrbG2Q==/lib/x86, /data/app/com.init.fishbowlapp.test-VtH31efUbjrbzVRo0RzFLQ==/base.apk!/lib/x86, /data/app/com.init.fishbowlapp-Vze0yTTg5i6SkZGPrrbG2Q==/base.apk!/lib/x86, /system/lib, /system/product/lib]]
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
09-05 23:11:25.119 19653 19653 W ClassPathPackageInfoSource: ... 25 more
09-05 23:11:25.119 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:25.313 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 3 lines
09-05 23:11:25.313 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:25.409 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:26.269 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 18 lines
09-05 23:11:26.270 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:26.367 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:27.298 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 18 lines
09-05 23:11:27.298 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:27.401 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:37.453 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 184 lines
09-05 23:11:37.455 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:37.567 19653 19666 I nit.fishbowlap: Background young concurrent copying GC freed 29017(2079KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 7176KB/7176KB, paused 419us total 1.595s
09-05 23:11:37.640 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:38.204 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 8 lines
09-05 23:11:38.205 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:38.371 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:41.292 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 47 lines
09-05 23:11:41.416 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:41.416 19653 19653 I nit.fishbowlap: Waiting for a blocking GC ClassLinker
09-05 23:11:41.424 19653 19666 I nit.fishbowlap: Background young concurrent copying GC freed 125814(9353KB) AllocSpace objects, 0(0B) LOS objects, 44% free, 2503KB/4501KB, paused 454us total 2.162s
09-05 23:11:41.424 19653 19653 I nit.fishbowlap: WaitForGcToComplete blocked ClassLinker on HeapTrim for 8.267ms
09-05 23:11:41.425 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:44.566 19653 19653 I chatty : uid=10145(com.init.fishbowlapp) identical 60 lines
09-05 23:11:44.667 19653 19653 W nit.fishbowlap: Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
09-05 23:11:44.719 19653 19674 I nit.fishbowlap: Waiting for a blocking GC ProfileSaver
09-05 23:11:44.725 19653 19653 W TestGrouping: Invalid Package: '' could not be found or has no tests
09-05 23:11:44.752 19653 19653 D SoLoader: init start
09-05 23:11:44.753 19653 19653 D SoLoader: adding system library source: /vendor/lib
09-05 23:11:44.754 19653 19653 D SoLoader: adding system library source: /system/lib
09-05 23:11:44.755 19653 19653 D SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.init.fishbowlapp-Vze0yTTg5i6SkZGPrrbG2Q==/lib/x86 flags = 0]
09-05 23:11:44.758 19653 19653 D SoLoader: adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/data/com.init.fishbowlapp/lib-main flags = 1]
09-05 23:11:44.759 19653 19653 D SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
09-05 23:11:44.759 19653 19653 D SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /vendor/lib flags = 2]
09-05 23:11:44.759 19653 19653 D SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.init.fishbowlapp-Vze0yTTg5i6SkZGPrrbG2Q==/lib/x86 flags = 0]
09-05 23:11:44.759 19653 19653 D SoLoader: Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/com.init.fishbowlapp/lib-main flags = 1]
09-05 23:11:44.764 19653 19653 V fb-UnpackingSoSource: locked dso store /data/user/0/com.init.fishbowlapp/lib-main
09-05 23:11:44.784 19653 19653 V fb-UnpackingSoSource: deps mismatch on deps store: regenerating
09-05 23:11:44.784 19653 19653 V fb-UnpackingSoSource: so store dirty: regenerating
09-05 23:11:44.820 19653 19666 I nit.fishbowlap: Background young concurrent copying GC freed 34461(2247KB) AllocSpace objects, 0(0B) LOS objects, 45% free, 2857KB/5272KB, paused 1.076ms total 117.722ms
09-05 23:11:44.820 19653 19674 I nit.fishbowlap: WaitForGcToComplete blocked ProfileSaver on HeapTrim for 101.949ms
@a-eid have the same issue with hermes and proguard disabled
RN 0.63.2
Detox 17.5.3
And this command doesn't generate app-release-androidTest.apk:
cd android ; ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release ; cd -
UPDATE: I actually missed this part of doc https://github.com/wix/Detox/blob/master/docs/Introduction.Android.md
After setting things up everything works!
@makarkotlov thank will very much I try it out, looks like I did miss this step as well.
Most helpful comment
To whom it may concern, I expect for the official support for RN 0.63 to be released in
17.3.3. Stay tuned.