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

Cant' start espresso server (The process did not start within 30000ms) #603

Open
piotrczarnak opened this issue Sep 15, 2020 · 5 comments
Open

Comments

@piotrczarnak
Copy link

piotrczarnak commented Sep 15, 2020

Hi i am trying run my UI test with espresso server but i am getting below error.
Android v 8
forceEspressoRebuild set to true in desired capabilities.

Unable to create a new remote session. Please check the server log for more details. Original error: A new session could not be created. Details: The process did not start within 30000ms (cmd: '/Users/.../Library/Android/sdk/platform-tools/adb -P 5037 -s ce0716075b73d43002 shell am instrument -w -e debug false io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner'). Check https://github.com/appium/appium-espresso-driver#troubleshooting regarding advanced session startup troubleshooting.

Logs in attachment.

logs.txt

@KazuCocoa
Copy link
Member

What the output of the logcat when you manually run /Users/piotr.czarnak/Library/Android/sdk/platform-tools/adb -P 5037 -s ce0716075b73d43002 shell am instrument -w -e debug false io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner?

@piotrczarnak
Copy link
Author

@KazuCocoa
java.lang.NoSuchMethodError: No direct method (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V in class Lkotlin/jvm/internal/MutablePropertyReference1Impl; or its super classes (declaration of 'kotlin.jvm.internal.MutablePropertyReference1Impl' appears in /data/app/io.appium.espressoserver.test-hPc_7do3o0iJzIkHrbSGXQ==/base.apk)

@KazuCocoa
Copy link
Member

It looks like the build did not have the Kotlin implementation...
Was your environment got proguard? I wonder they removed Kotlin stuff as optimization.

@KazuCocoa
Copy link
Member

Simular to #232 ?

@ShaharBenAyoon0752
Copy link

@KazuCocoa
java.lang.NoSuchMethodError: No direct method (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V in class Lkotlin/jvm/internal/MutablePropertyReference1Impl; or its super classes (declaration of 'kotlin.jvm.internal.MutablePropertyReference1Impl' appears in /data/app/io.appium.espressoserver.test-hPc_7do3o0iJzIkHrbSGXQ==/base.apk)

I'm also getting the same error, but for me the application crushes few seconds after launch. There is any solution?

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

3 participants