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

java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Lambda #1006

Open
fajar0402 opened this issue May 13, 2024 · 0 comments

Comments

@fajar0402
Copy link

fajar0402 commented May 13, 2024

I've encountered issues while trying to start the Espresso server. I've been stuck trying to fix this issue for the past three days, but so far, no solution has been found.

This is my appium and espresso driver version:

[Appium] Welcome to Appium v2.5.4
[Appium] The autodetected Appium home path: /Users/fajarkurniawan/.appium
[Appium] Attempting to load driver espresso...
[Appium] Requiring driver at /Users/fajarkurniawan/.appium/node_modules/appium-espresso-driver/build/index.js
[Appium] EspressoDriver has been successfully loaded in 0.578s
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLs in your client code to connect to this server:
[Appium] http://127.0.0.1:4723/ (only accessible from the same host)
[Appium] http://192.168.100.22:4723/
[Appium] Available drivers:
[Appium] - [email protected] (automationName 'Espresso')
[Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.

This is where my capabilities are set:

"appium:app": "/Users/fajarkurniawan/Documents/Projects/Automation/Mobile-Apps/android-automation/marketplace.apk",
"appium:appWaitActivity": "com.android.HomeActivity_",
"appium:autoGrantPermissions": true,
"appium:deviceName": "127.0.0.1:6555",
"appium:platformVersion": "12",
"appium:fullReset": true,
"appium:noReset": false,
"appium:forceEspressoRebuild": true,
"platformName": "Android",
"appium:automationName": "Espresso",
"appium:espressoServerLaunchTimeout": 360000,
"appium:showGradleLog": true,
"appium:newCommandTimeout": 72000,
"appium:espressoBuildConfig": "/Users/fajarkurniawan/Documents/Projects/Automation/Mobile-Apps/android-automation/buildconfig.json"

And for the espresso build config.json is:

{
"toolsVersions": {
"gradle": "7.6.2",
"androidGradlePlugin": "7.0.2",
"compileSdk": 31,
"buildTools": "31.0.0",
"minSdk": 21,
"targetSdk": 31
},
"additionalAppDependencies": [
"com.google.android.material:material:1.4.0",
"androidx.lifecycle:lifecycle-extensions:2.2.0",
"androidx.annotation:annotation:1.6.0",
"org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0",
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2",
"org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.2",
"androidx.lifecycle:lifecycle-runtime-ktx:2.5.1"
]
}

The Appium log is attached below:

[EspressoDriver@eb42 (71c59b81)] 'forceEspressoRebuild' capability is enabled [EspressoDriver@eb42 (71c59b81)] Loading the build configuration from '/Users/fajarkurniawan/Documents/Projects/Automation/Mobile-Apps/android-automation/buildconfig.json' [EspressoDriver@eb42 (71c59b81)] Building espresso server in '/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555' [EspressoDriver@eb42 (71c59b81)] The build folder root could be customized by changing the 'tmpDir' capability [EspressoDriver@eb42 (71c59b81)] Copying espresso server template from ('/Users/fajarkurniawan/.appium/node_modules/appium-espresso-driver/espresso-server' to '/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555') [Support] Traversed 52 directories and 283 files in 249ms [EspressoDriver@eb42 (71c59b81)] Bulding espresso server [EspressoDriver@eb42 (71c59b81)] Adding the following additionalAppDependencies to build.gradle.kts: implementation("com.google.android.material:material:1.4.0"),implementation("androidx.lifecycle:lifecycle-extensions:2.2.0"),implementation("androidx.annotation:annotation:1.6.0"),implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0"),implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2"),implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.2"),implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.5.1") [EspressoDriver@eb42 (71c59b81)] Beginning build with command '/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/gradlew -PappiumAndroidGradlePlugin=7.0.2 -PappiumCompileSdk=31 -PappiumBuildTools=31.0.0 -PappiumMinSdk=21 -PappiumTargetSdk=31 -PappiumTargetPackage=com.android.qa app:assembleAndroidTest' in directory '/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555' [EspressoDriver@eb42 (71c59b81)] Output from Gradle will be logged. To change this, use 'showGradleLog' desired capability [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] Starting a Gradle Daemon (subsequent builds will be faster) [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDERR] Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times. [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:preBuild UP-TO-DATE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:preDebugBuild UP-TO-DATE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:compileDebugAidl NO-SOURCE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:compileDebugRenderscript NO-SOURCE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:generateDebugBuildConfig [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:generateDebugResValues [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:generateDebugResources [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:checkDebugAarMetadata [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:createDebugCompatibleScreenManifests [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:extractDeepLinksDebug [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:processDebugMainManifest [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:processDebugManifest [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:preDebugAndroidTestBuild SKIPPED [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestAidl NO-SOURCE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:javaPreCompileDebug [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:mergeDebugResources [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:processDebugAndroidTestManifest [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestBuildConfig [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestRenderscript NO-SOURCE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:checkDebugAndroidTestAarMetadata [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestResValues FROM-CACHE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestResources UP-TO-DATE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:processDebugManifestForPackage [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestResources [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:javaPreCompileDebugAndroidTest FROM-CACHE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestShaders [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestShaders NO-SOURCE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestAssets UP-TO-DATE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestAssets [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:compressDebugAndroidTestAssets [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:processDebugAndroidTestJavaRes NO-SOURCE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestJniLibFolders [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestNativeLibs NO-SOURCE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:processDebugAndroidTestResources [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:checkDebugAndroidTestDuplicateClasses [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:processDebugResources [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:desugarDebugAndroidTestFileDependencies [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:compileDebugKotlin NO-SOURCE [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:compileDebugJavaWithJavac [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:bundleDebugClasses [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:mergeLibDexDebugAndroidTest [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:validateSigningDebugAndroidTest [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:writeDebugAndroidTestSigningConfigVersions [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:mergeExtDexDebugAndroidTest [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestKotlin [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/GetDisplayDensity.kt:36:17 'getRealMetrics(DisplayMetrics!): Unit' is deprecated. Deprecated in Java [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/MobileSwipe.kt:86:36 'performGesture(GestureScope.() -> Unit): SemanticsNodeInteraction' is deprecated. Replaced by performTouchInput [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/MobileSwipe.kt:86:53 'swipeUp(): Unit' is deprecated. Replaced by TouchInjectionScope. Use performTouchInputinstead ofperformGesture[EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/MobileSwipe.kt:87:38 'performGesture(GestureScope.() -> Unit): SemanticsNodeInteraction' is deprecated. Replaced by performTouchInput [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/MobileSwipe.kt:87:55 'swipeDown(): Unit' is deprecated. Replaced by TouchInjectionScope. UseperformTouchInputinstead ofperformGesture[EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/MobileSwipe.kt:88:38 'performGesture(GestureScope.() -> Unit): SemanticsNodeInteraction' is deprecated. Replaced by performTouchInput [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/MobileSwipe.kt:88:55 'swipeLeft(): Unit' is deprecated. Replaced by TouchInjectionScope. UseperformTouchInputinstead ofperformGesture[EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/MobileSwipe.kt:89:39 'performGesture(GestureScope.() -> Unit): SemanticsNodeInteraction' is deprecated. Replaced by performTouchInput [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/MobileSwipe.kt:89:56 'swipeRight(): Unit' is deprecated. Replaced by TouchInjectionScope. UseperformTouchInputinstead ofperformGesture [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/helpers/DeviceInfoHelper.kt:94:21 'getRealMetrics(DisplayMetrics!): Unit' is deprecated. Deprecated in Java [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/helpers/DeviceInfoHelper.kt:125:21 'getRealSize(Point!): Unit' is deprecated. Deprecated in Java [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/helpers/ScreenshotHelpers.kt:27:40 'Screenshot' is deprecated. Deprecated in Java [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/helpers/ScreenshotHelpers.kt:42:25 'Screenshot' is deprecated. Deprecated in Java [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] w: file:///private/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/src/androidTest/java/io/appium/espressoserver/lib/helpers/ScreenshotHelpers.kt:47:22 'Screenshot' is deprecated. Deprecated in Java [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestJavaWithJavac [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestSources [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestJavaResource [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:dexBuilderDebugAndroidTest [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:mergeProjectDexDebugAndroidTest [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:packageDebugAndroidTest [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:assembleDebugAndroidTest [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] > Task :app:assembleAndroidTest [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] See https://docs.gradle.org/7.6.2/userguide/command_line_interface.html#sec:command_line_warnings [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] BUILD SUCCESSFUL in 51s [EspressoDriver@eb42 (71c59b81)] [Gradle] [STDOUT] 36 actionable tasks: 34 executed, 2 from cache [EspressoDriver@eb42 (71c59b81)] Copying built apk from '/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/espresso-server-127.0.0.1-6555/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk' to '/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk' [ADB] Checking app cert for /var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk [ADB] Using 'apksigner.jar' from '/Users/fajarkurniawan/Library/Android/sdk/build-tools/34.0.0/lib/apksigner.jar' [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/fajarkurniawan/Library/Android/sdk/build-tools/34.0.0/lib/apksigner.jar verify --print-certs /var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk [ADB] apksigner stdout: Signer #1 certificate DN: C=US, O=Android, CN=Android Debug [ADB] Signer #1 certificate SHA-256 digest: 609c32375a0b07087c6434891f59ba84f290991a8ea100ac44db91de6ac803ca [ADB] Signer #1 certificate SHA-1 digest: 482b8f02a05a6a7393a30af58ffd7ca7913655f1 [ADB] Signer #1 certificate MD5 digest: e8a30d5bb2a13fc901119eb44ccc0b49 [ADB] [ADB] '/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk' is signed with a non-default certificate [ADB] Using 'zipalign' from '/Users/fajarkurniawan/Library/Android/sdk/build-tools/34.0.0/zipalign' [ADB] /var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk' is already zip-aligned. Doing nothing [ADB] Signing '/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk' with default cert [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/fajarkurniawan/Library/Android/sdk/build-tools/34.0.0/lib/apksigner.jar sign --key /Users/fajarkurniawan/.appium/node_modules/appium-espresso-driver/node_modules/appium-adb/keys/testkey.pk8 --cert /Users/fajarkurniawan/.appium/node_modules/appium-espresso-driver/node_modules/appium-adb/keys/testkey.x509.pem /var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk [ADB] Uninstalling io.appium.espressoserver.test [ADB] Getting install status for io.appium.espressoserver.test [ADB] Running '/Users/fajarkurniawan/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1:6555 shell cmd package list packages' [ADB] 'io.appium.espressoserver.test' is installed [ADB] Running '/Users/fajarkurniawan/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1:6555 shell am force-stop io.appium.espressoserver.test' [ADB] Running '/Users/fajarkurniawan/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1:6555 uninstall io.appium.espressoserver.test' [ADB] 'adb uninstall io.appium.espressoserver.test' command output: Success [ADB] io.appium.espressoserver.test was successfully uninstalled [EspressoDriver@eb42 (71c59b81)] Uninstalled the obsolete Espresso server package from the device under test [ADB] Getting package info for 'io.appium.espressoserver.test' [ADB] Running '/Users/fajarkurniawan/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1:6555 shell dumpsys package io.appium.espressoserver.test' [ADB] App '/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk' is not installed [EspressoDriver@eb42 (71c59b81)] Installing Espresso Test Server apk from the target device (path: '/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk') [ADB] The application at '/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk' will not be cached, because the device under test has confirmed the support of streamed installs [ADB] Running '/Users/fajarkurniawan/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1:6555 install /var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk' [ADB] The installation of 'io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk' took 113ms [ADB] Install command stdout: Serving... [ADB] Performing Incremental Install [ADB] [ADB] Exception occurred while executing 'install-incremental': [ADB] java.lang.IllegalArgumentException: Incremental i... [ADB] at android.os.Binder.execTransactInternal(Binder.java:1184) [ADB] at android.os.Binder.execTransact(Binder.java:1143) [ADB] Performing Streamed Install [ADB] Success [EspressoDriver@eb42 (71c59b81)] Installed Espresso Test Server apk '/var/folders/5t/ysjnddb10m94st_r8t202jmw0000gn/T/io.appium.espressoserver.test_2.38.3_com.android.qa_127.0.0.1-6555.apk' (pkg: 'io.appium.espressoserver.test') [ADB] Adding packages ["io.appium.settings","io.appium.espressoserver.test"] to Doze whitelist [ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.espressoserver.test",";"]] [ADB] Running '/Users/fajarkurniawan/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1:6555 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.espressoserver.test ;' [EspressoDriver@eb42 (71c59b81)] Performing cleanup of automation leftovers [EspressoDriver@eb42 (71c59b81)] No obsolete sessions have been detected (socket hang up) [EspressoDriver@eb42 (71c59b81)] Starting Espresso Server v2.38.3 with cmd: adb shell am instrument -w -e debug false -e disableAnalytics true io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner [ADB] Creating ADB subprocess with args: ["-P","5037","-s","127.0.0.1:6555","shell","am","instrument","-w","-e","debug","false","-e","disableAnalytics","true","io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner"] [EspressoDriver@eb42 (71c59b81)] Waiting up to 360000ms for Espresso server to be online [EspressoDriver@eb42 (71c59b81)] Matched '/status' to command name 'getStatus' [EspressoDriver@eb42 (71c59b81)] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body [EspressoDriver@eb42 (71c59b81)] socket hang up [EspressoDriver@eb42 (71c59b81)] Matched '/status' to command name 'getStatus' [EspressoDriver@eb42 (71c59b81)] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body [EspressoDriver@eb42 (71c59b81)] socket hang up [EspressoDriver@eb42 (71c59b81)] Matched '/status' to command name 'getStatus' [EspressoDriver@eb42 (71c59b81)] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body [EspressoDriver@eb42 (71c59b81)] socket hang up [EspressoDriver@eb42 (71c59b81)] Matched '/status' to command name 'getStatus' [EspressoDriver@eb42 (71c59b81)] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body [EspressoDriver@eb42 (71c59b81)] socket hang up [EspressoDriver@eb42 (71c59b81)] Matched '/status' to command name 'getStatus' [EspressoDriver@eb42 (71c59b81)] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body [EspressoDriver@eb42 (71c59b81)] socket hang up [EspressoDriver@eb42 (71c59b81)] Matched '/status' to command name 'getStatus' [EspressoDriver@eb42 (71c59b81)] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body [EspressoDriver@eb42 (71c59b81)] socket hang up [EspressoDriver@eb42 (71c59b81)] Matched '/status' to command name 'getStatus' [EspressoDriver@eb42 (71c59b81)] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body [EspressoDriver@eb42 (71c59b81)] socket hang up [EspressoDriver@eb42 (71c59b81)] Matched '/status' to command name 'getStatus' [EspressoDriver@eb42 (71c59b81)] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body [EspressoDriver@eb42 (71c59b81)] socket hang up [EspressoDriver@eb42 (71c59b81)] [Instrumentation] Process crashed before executing the test(s): [EspressoDriver@eb42 (71c59b81)] java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Lambda; [EspressoDriver@eb42 (71c59b81)] at androidx.test.platform.io.FileTestStorage.<init>(FileTestStorage.java:45) [EspressoDriver@eb42 (71c59b81)] at androidx.test.runner.AndroidJUnitRunner.registerTestStorage(AndroidJUnitRunner.java:664) [EspressoDriver@eb42 (71c59b81)] at androidx.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:441) [EspressoDriver@eb42 (71c59b81)] at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2278) [EspressoDriver@eb42 (71c59b81)] Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Lambda [EspressoDriver@eb42 (71c59b81)] ... 4 more [EspressoDriver@eb42 (71c59b81)] [Instrumentation] INSTRUMENTATION_RESULT: shortMsg=Process crashed. [EspressoDriver@eb42 (71c59b81)] [Instrumentation] INSTRUMENTATION_CODE: 0 [EspressoDriver@eb42 (71c59b81)] Matched '/status' to command name 'getStatus' [EspressoDriver@eb42 (71c59b81)] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body [EspressoDriver@eb42 (71c59b81)] socket hang up [EspressoDriver@eb42 (71c59b81)] Matched '/status' to command name 'getStatus' [EspressoDriver@eb42 (71c59b81)] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body [EspressoDriver@eb42 (71c59b81)] socket hang up [EspressoDriver@eb42 (71c59b81)] Instrumentation process exited with code 0 from signal null [EspressoDriver@eb42 (71c59b81)] Espresso server process has been unexpectedly terminated. Check the Appium server log and the logcat output for more details [EspressoDriver@eb42 (71c59b81)] Deleting espresso session

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

1 participant