Kotlin internal error

Ответили на вопрос 3 человека. Оцените лучшие ответы! И подпишитесь на вопрос, чтобы узнавать о появлении новых ответов.

6059f14317a83620422687.png

Kotlin: [Internal Error] java.lang.NoClassDefFoundError: Could not initialize class com.intellij.pom.java.LanguageLevel

Может кто сталкивался с такой проблемой, после обновления на последний релиз, появилась такая проблема


  • Вопрос задан

    более года назад

  • 3361 просмотр

Пригласить эксперта

Попробуйте: File -> Invalidate caches / Restart…

У меня IntelliJ IDEA сказала что мне надо установить плагин Kotlin. Я его установил и ошибка пропала
Как установить плагин в IntelliJ IDEA тык
Как итог следующий код заработал:

fun main (args: Array<String>){
    println("Hello, World!")
}

Если еще актуально — я создал проект не так как в книжке, а через Gradle -> Kotlin/JVM. Далее дождался, когда мне все скачается, и потом создал файл main.kt(я думаю название можно любое) по пути src -> main -> kotlin и уже там создал точку входа (которая fun main())


  • Показать ещё
    Загружается…

09 февр. 2023, в 23:14

1500 руб./за проект

09 февр. 2023, в 23:00

1500 руб./за проект

09 февр. 2023, в 22:06

500 руб./за проект

Минуточку внимания

Содержание

  1. Как исправить ошибку java.lang.NoClassDefFoundError в Java J2EE
  2. Разбираемся с причинами noclassdeffounderror в Java
  3. Разница между java.lang.NoClassDefFoundError и ClassNotFoundException в Java
  4. Примеры
  5. NoClassDefFoundError в Java из-за исключения в блоке инициализатора
  6. Fix Java.Lang.NoClassDefFoundError: Could Not Initialize Class Error
  7. Java Program With the Java.Lang.NoClassDefFoundError: Could Not Initialize Class Error
  8. Possible Causes for Java.Lang.NoClassDefFoundError: Could Not Initialize Class Error
  9. Solution to Eradicate the Java.Lang.NoClassDefFoundError: Could Not Initialize Class Error
  10. java.lang.NoClassDefFoundError #69
  11. Comments
  12. Cannot build java due to missing class java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics #41
  13. Comments

Как исправить ошибку java.lang.NoClassDefFoundError в Java J2EE

Я потратил довольно много времени, чтобы выяснить как исправить ошибку java.lang.NoClassDefFoundError в Java.

В этой инструкции я покажу как исправить эти ошибки, раскрою некоторые секреты NoClassDefFoundError и поделюсь своим опытом в этой области.

NoClassDefFoundError – это самая распространенная ошибка в разработке Java. В любом случае, давайте посмотрим, почему это происходит и что нужно сделать для разрешения проблемы.

Разбираемся с причинами noclassdeffounderror в Java

NoClassDefFoundError в Java возникает, когда виртуальная машина Java не может найти определенный класс во время выполнения, который был доступен во время компиляции.

Например, если у нас есть вызов метода из класса или доступ к любому статическому члену класса, и этот класс недоступен во время выполнения, JVM сгенерирует NoClassDefFoundError.

Важно понимать, что это отличается от ClassNotFoundException, который появляется при попытке загрузить класс только во время выполнения, а имя было предоставлено во время выполнения, а не во время компиляции. Многие Java-разработчики смешивают эти две ошибки и запутываются.

NoClassDefFoundError возникнет, если класс присутствовал во время компиляции, но не был доступен в java classpath во время выполнения. Обычно появляется такая ошибка:

Разница между java.lang.NoClassDefFoundError и ClassNotFoundException в Java

[ads-pc-3]
java.lang.ClassNotFoundException и java.lang.NoClassDefFoundError оба связаны с Java Classpath, и они полностью отличаются друг от друга.

ClassNotFoundException возникает, когда JVM пытается загрузить класс во время выполнения, т.е. вы даете имя класса во время выполнения, а затем JVM пытается загрузить его, и если этот класс не найден, он генерирует исключение java.lang.ClassNotFoundException.

Тогда как в случае NoClassDefFoundError проблемный класс присутствовал во время компиляции, и поэтому программа успешно скомпилирована, но не доступна во время выполнения по любой причине.

Приступим к решению ошибки java.lang.NoClassDefFoundError.

Нам нужно добавить NoClassDefFoundError в Classpath или проверить, почему он не доступен в Classpath. Там может быть несколько причин, таких как:

  1. Класс недоступен в Java Classpath.
  2. Возможно, вы запускаете вашу программу с помощью jar, а класс не определен в атрибуте ClassPath.
  3. Любой сценарий запуска переопределяет переменную среды Classpath.
    Поскольку NoClassDefFoundError является подклассом java.lang.LinkageError, он также может появиться, если библиотека может быть недоступна.
  4. Проверьте наличие java.lang.ExceptionInInitializerError в файле журнала. NoClassDefFoundError из-за сбоя инициализации встречается довольно часто.
  5. Если вы работаете в среде J2EE, то видимость Class среди нескольких Classloader также может вызвать java.lang.NoClassDefFoundError.

Примеры

  1. Простой пример NoClassDefFoundError – класс принадлежит отсутствующему файлу JAR, или JAR не был добавлен в путь к классам, или имя jar было изменено кем-то.
  2. Класс не находится в Classpath, нет способа узнать это, но вы можете просто посмотреть в System.getproperty (“java.classpath”), и он напечатает classpath оттуда, где можно получить представление о фактическом пути к классам во время выполнения.
  3. Просто попробуйте запустить явно -classpath с тем классом, который, по вашему мнению, будет работать, и если он работает, это верный признак того – что-то переопределяет java classpath.

NoClassDefFoundError в Java из-за исключения в блоке инициализатора

Это еще одна распространенная причина java.lang.NoClassDefFoundError, когда ваш класс выполняет некоторую инициализацию в статическом блоке и если статический блок генерирует исключение, класс, который ссылается на этот класс, получит NoclassDefFoundError.

Смотрите в журнале java.lang.ExceptionInInitializerError, потому что это может вызвать java.lang.NoClassDefFoundError: Could not initialize class.

Как и в следующем примере кода, во время загрузки и инициализации класса, пользовательский класс генерирует Exception из статического блока инициализатора, который вызывает ExceptionInInitializerError при первой загрузке пользовательского класса в ответ на новый вызов User ().
[ads-pc-3]

  1. Поскольку NoClassDefFoundError также является LinkageError, который возникает из-за зависимости от какого-либо другого класса, вы также можете получить java.lang.NoClassDefFoundError, если ваша программа зависит от собственной библиотеки, а соответствующая DLL отсутствует. Помните, что это может также вызвать java.lang.UnsatisfiedLinkError: no dll in java.library.path. Чтобы решить эту проблему, держите dll вместе с JAR.
  2. Если вы используете файл ANT, создайте JAR, стоит отметить отладку до этого уровня, чтобы убедиться, что скрипт компоновки ANT получает правильное значение classpath и добавляет его в файл manifest.mf.
  3. Проблема с правами доступа к файлу JAR. Если вы работаете с Java-программой в многопользовательской операционной системе, такой как Linux, вам следует использовать идентификатор пользователя приложения для всех ресурсов приложения, таких как файлы JAR, библиотеки и конфигурации. Если вы используете разделяемую библиотеку, которая используется несколькими приложениями, работающими под разными пользователями, вы можете столкнуться с проблемой прав доступа, например, файл JAR принадлежит другому пользователю и недоступен для вашего приложения.
  4. Опечатка в конфигурации XML также может вызвать NoClassDefFoundError в Java. Как и большинство Java-фреймворков, таких как Spring, Struts все они используют конфигурацию XML для определения bean-компонентов. В любом случае, если вы неправильно указали имя компонента, он может вызвать ошибку при загрузке другого класса. Это довольно часто встречается в среде Spring MVC и в Apache Struts, где вы получаете множество исключений при развертывании файла WAR или EAR.
  5. Когда ваш скомпилированный класс, который определен в пакете, не присутствует в том же пакете во время загрузки, как в случае с JApplet.
  6. Еще одна причина- это нескольких загрузчиков классов в средах J2EE. Поскольку J2EE не использует стандартную структуру загрузчика классов, а зависит от Tomcat, WebLogic, WebSphere и т.д., от того, как они загружают различные компоненты J2EE, такие как WAR-файл или EJB-JAR-файл. Кроме того, если класс присутствует в обоих файлах JAR и вы вызовете метод equals для сравнения этих двух объектов, это приведет к исключению ClassCastException, поскольку объект, загруженный двумя различными загрузчиками классов, не может быть равным.
  7. Очень редко может происходить Exception in thread “main” java.lang.NoClassDefFoundError: com/sun/tools/javac/Main. Эта ошибка означает, что либо ваш Classpath, PATH или JAVA_HOME не настроен должным образом, либо JDK установка не правильная. Попробуйте переустановить JDK. Замечено, что проблема возникала после установки jdk1.6.0_33 и последующей переустановки JDK1.6.0_25.

Средняя оценка 2.5 / 5. Количество голосов: 36

Источник

Fix Java.Lang.NoClassDefFoundError: Could Not Initialize Class Error

Today, we will learn about another runtime error: the java.lang.noclassdeffounderror: could not initialize class . First, we will go through a Java program having this error which will lead to the discussion about possible reasons and figure out which line of code is causing this error.

Finally, we will also learn about the solution to eliminate this error.

Java Program With the Java.Lang.NoClassDefFoundError: Could Not Initialize Class Error

Here, we have two .java classes named PropHolder and Main . The PropHolder class loads the properties from the specified file while the Main class sets them and saves them into a file.

It also references the prop variable of the PropHolder class to print the values of all properties.

This Java code works fine when we run it on our local machine, but it does not work when deployed on a Linux Server with some script. Why is it so? Let’s figure out the reasons.

Possible Causes for Java.Lang.NoClassDefFoundError: Could Not Initialize Class Error

Firstly, remember that getting the java.lang.NoClassDefFoundError does not only mean our class is missing. If that is so, we will get the java.lang.ClassNotFoundException .

It also does not mean that the bytecode ( .class ) is missing (in that case, we would get an error like this java.lang.NoClassDefFoundError: classname ).

So, the java.lang.noclassdeffounderror: could not initialize class error by our server means it cannot locate the class file. It can be caused by different reasons that are listed below.

The issue can be in the static block (also called a static initializer). It’d appear with an uncaught exception, occur & propagated up to an actual ClassLoader trying to load a class.

If the exception is not due to the static block, it can be while creating a static variable named PropHolder.prop .

Possibly, the Class is not available in the specified Java CLASSPATH .

We might have executed our Java program using the jar command while the Class was not defined in the ClassPath attribute of the MANIFEST file.

This error can be caused by a start-up script that overrides the CLASSPATH environment variable.

Another reason could be missing a dependency. For instance, the native library might not be available because NoClassDefFoundError is the child class of java.lang.LinkageError .

We can also look for the java.lang.ExceptionInInitializerError in our log file because there is a possibility that the NoClassDefFoundError was occurring due to the failure of static initialization.

If one of you is working in the J2EE environment, then the Class ’s visibility in different ClassLoaders can cause the java.lang.NoClassDefFoundError error.

Sometimes, it causes due to JRE/JDK version error.

It can also occur when we compile something on our machine with, let’s say, OpenJDK version 8.x.x. We push/commit, but someone else has configured its JAVA_HOME to some 11.x JDK version.

Here, we can get ClassNotFoundError , NoClassDefFoundError , etc. So, it is better to check what JDK the program has been compiled with.

Solution to Eradicate the Java.Lang.NoClassDefFoundError: Could Not Initialize Class Error

In our case, the ClassLoader ran into the error while reading the class definition when it was trying to read the class. So, putting a try-catch block inside the static initializer will solve the issue.

Remember, if we are reading some files there, then it would differ from our local environment.

In the above class, we created a static variable named prop of type Properties , which we use in the static block. Inside the static block, we created an object of the FileInputStream , which obtains the input bytes from a specified file in the file system.

Next, we initialized the prop variable by calling the constructor of the Properties class, which is used to load the properties from a specified file. Remember, this static block only gets executed once we run the application.

In the Main class, we instantiate the Properties class to set values for various properties and save them in the specified file. Next, we reference the PropHolder.prop to access the values of db.url , db.user , and db.password properties and print them on the program output console as follows.

Mehvish Ashiq is a former Java Programmer and a Data Science enthusiast who leverages her expertise to help others to learn and grow by creating interesting, useful, and reader-friendly content in Computer Programming, Data Science, and Technology.

Источник

java.lang.NoClassDefFoundError #69

I’m getting the following error when executing ./gradlew runIdea :

I am using Kotlin 1.0.0-beta-4584 in my plugin and I am trying to run version = ‘IU-15.0.1’ of IntelliJ. Any ideas of what is going on here?

The text was updated successfully, but these errors were encountered:

@yole could you help please?

Can’t remember if kotlin-runtime includes reflection but try adding

to your dependencies

@AlecStrong unfortunately that doesn’t seem to help. still getting the same error after adding that dependency.

I have a feeling that #57 and #60 might be involved, but I’m not quite sure what exactly is happening here that’s causing these problems.

Hey, I had the very same issue. It just disappeared after deleting the

/.gradle directory, where the cached idea files are downloaded and extracted.

@AmailP that actually seems to work, but now I’m confused even more. any idea what is causing these issues?

@Turbo87 don’t know either. Maybe before 0.0.39 your project were compiled against IDEA’s kotlin and since 0.0.39 it’s compiled against your particular kotlin dependency, so some of your classes were compiled with one kotlin version and some other classes – with other kotlin version, and maybe this leads to the problem. Anyway I’m not really want to investigate this, knowing gradle clean fixes it 🙂
If you faced the error again please reopen this issue.

Источник

Cannot build java due to missing class java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics #41

Hi truongsinh, first I very appriciate what you’ve done with this project.

I’m trying to build and run the Java client project but i caught this error, can you guide me how to resolve this problem.

The text was updated successfully, but these errors were encountered:

@duongnguyenquy
Please refer below link to fix the issue.
#29

thanks @shibupanda.
I can run the java project now but in appium there is log about this
UnhandledPromiseRejectionWarning: Error: «ext.flutter.driver» is not found in «extensionRPCs» [«ext.ui.window.scheduleFrame»]

I’ve added enableFlutterDriverExtension(); to my app but now the problem is when i run the test in maven build the log is :
basicTest(example.appium.FlutterTest) Time elapsed: 26.102 sec

I wonder if someone can help with the Kotlin problem above.

There is something wrong with the finder project. I cannot run the java appium client project.
The error now showing :
java.lang.NoClassDefFoundError: kotlinx/serialization/json/Json
at pro.truongsinh.appium_flutter.finder._FinderRawMethods__SerializerKt.(serializer.kt:10)
at pro.truongsinh.appium_flutter.finder._FinderRawMethods.serialize(Unknown Source)
at pro.truongsinh.appium_flutter.finder.FlutterElement.(FlutterElement.kt:9)
at pro.truongsinh.appium_flutter.finder._FinderRawMethods__ByValueKeyKt.byValueKey(byValueKey.kt:6)
at pro.truongsinh.appium_flutter.finder._FinderRawMethods.byValueKey(Unknown Source)
at pro.truongsinh.appium_flutter.FlutterFinder.byValueKey(FlutterFinder.kt:60)
at example.appium.FlutterTest.basicTest(FlutterTest.java:27)

@duongnguyenquy There is no issues with the finder project. May be some dependencies may skip. Please add below dependency to make this work.

org.jetbrains.kotlinx kotlinx-serialization-runtime 0.11.1

Please close this if it works for you.

org.jetbrains.kotlinx kotlinx-serialization-runtime 0.11.1
Please close this if it works for you.

If that was indeed the solution, we might need to find the way to ensure that, or mention in the doc.

@truongsinh faced the same. Some times above artifact blocked so let’s add this dependencies in pom.xml that will resolve the issue. I will do that.

Reopen this issue as we are working on it.

@truongsinh @shibupanda Hi this hari, I saw your works , its great and good effort, i have one issue wiith flutter fiinder, if i try find.text(«Enter your mobile number»).click(); any other find am getting nothing for long time, its simply in showing this message

» POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/element/eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9/click
[HTTP] <«id»:»eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9″>
[debug] [MJSONWP (ad98101b)] Calling AppiumDriver.click() with args: [«eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9″,»ad98101b-5142-4671-80b7-a4f275b64e31»]
[debug] [FlutterDriver] Executing Flutter driver command ‘click’
[debug] [FlutterDriver] >>> <«command»:»tap»,»finderType»:»ByText»,»text»:»Enter your mobile number»>
[HTTP] POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/element/eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9/click
[HTTP] <«id»:»eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9″>
[debug] [MJSONWP (ad98101b)] Calling AppiumDriver.click() with args: [«eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9″,»ad98101b-5142-4671-80b7-a4f275b64e31»]
[debug] [FlutterDriver] Executing Flutter driver command ‘click’»

am not able to do any action, its like hang or somewhat showing a long time.
help me out from this issue.
I just need some tutorial for setup environment for Java, what is the thing we have install and how to execute from java ide
Below full log:

[FlutterDriver] Connection to ws://127.0.0.1:41489/dBpx0fpk9CM=/ws closed
[HTTP] —> POST /wd/hub/session
[HTTP] <«desiredCapabilities»:<«app»:»C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»,»appActivity»:».MainActivity»,»appPackage»:»com.globalmantrainnovations.myfhb»,»noReset»:true,»newCommandTimeout»:»36000″,»platformVersion»:»10″,»automationName»:»Flutter»,»platformName»:»Android»,»deviceName»:»803KPSL1691678″>,»capabilities»:<«firstMatch»:[<«appium:app»:»C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»,»appium:appActivity»:».MainActivity»,»appium:appPackage»:»com.globalmantrainnovations.myfhb»,»appium:automationName»:»Flutter»,»appium:deviceName»:»803KPSL1691678″,»appium:newCommandTimeout»:»36000″,»appium:noReset»:true,»platformName»:»android»,»appium:platformVersion»:»10″>]>>
[debug] [W3C] Calling AppiumDriver.createSession() with args: [<«app»:»C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»,»appActivity»:».MainActivity»,»appPackage»:»com.globalmantrainnovations.myfhb»,»noReset»:true,»newCommandTimeout»:»36000″,»platformVersion»:»10″,»automationName»:»Flutter»,»platformName»:»Android»,»deviceName»:»803KPSL1691678″>,null,<«firstMatch»:[<«appium:app»:»C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»,»appium:appActivity»:».MainActivity»,»appium:appPackage»:»com.globalmantrainnovations.myfhb»,»appium:automationName»:»Flutter»,»appium:deviceName»:»803KPSL1691678″,»appium:newCommandTimeout»:»36000″,»appium:noReset»:true,»platformName»:»android»,»appium:platformVersion»:»10″>]>]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1596432149768 (10:52:29 GMT+0530 (India Standard Time))
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[Appium] Appium v1.16.0 creating new FlutterDriver (v0.0.20) session
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: <
[debug] [BaseDriver] «app»: «C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»,
[debug] [BaseDriver] «appActivity»: «.MainActivity»,
[debug] [BaseDriver] «appPackage»: «com.globalmantrainnovations.myfhb»,
[debug] [BaseDriver] «noReset»: true,
[debug] [BaseDriver] «newCommandTimeout»: «36000»,
[debug] [BaseDriver] «platformVersion»: «10»,
[debug] [BaseDriver] «automationName»: «Flutter»,
[debug] [BaseDriver] «platformName»: «Android»,
[debug] [BaseDriver] «deviceName»: «803KPSL1691678»
[debug] [BaseDriver] >
[BaseDriver] Capability ‘newCommandTimeout’ changed from string (‘36000’) to integer (36000). This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver] appActivity
[BaseDriver] appPackage
[BaseDriver] Session created with session id: ad98101b-5142-4671-80b7-a4f275b64e31
[FlutterDriver] Starting an Android proxy session
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: <
[debug] [BaseDriver] «app»: «C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»,
[debug] [BaseDriver] «appActivity»: «.MainActivity»,
[debug] [BaseDriver] «appPackage»: «com.globalmantrainnovations.myfhb»,
[debug] [BaseDriver] «noReset»: true,
[debug] [BaseDriver] «newCommandTimeout»: 0,
[debug] [BaseDriver] «platformVersion»: «10»,
[debug] [BaseDriver] «automationName»: «Flutter»,
[debug] [BaseDriver] «platformName»: «Android»,
[debug] [BaseDriver] «deviceName»: «803KPSL1691678»
[debug] [BaseDriver] >
[BaseDriver] Session created with session id: 37dc808b-d2a3-4a55-ae6a-2b7e144dc2c1
[BaseDriver] Using local app ‘C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk’
[debug] [UiAutomator2] Checking whether app is actually present
[ADB] Using ‘adb.exe’ from ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe’
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices.
[debug] [ADB] Connected devices: [<«udid»:»803KPSL1691678″,»state»:»device»>]
[AndroidDriver] Looking for a device with Android ’10’
[debug] [ADB] Setting device id to 803KPSL1691678
[ADB] Getting device platform version
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell getprop ro.build.version.release’
[debug] [ADB] Current device property ‘ro.build.version.release’: 10
[AndroidDriver] Using device: 803KPSL1691678
[ADB] Using ‘adb.exe’ from ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe’
[debug] [ADB] Setting device id to 803KPSL1691678
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell getprop ro.build.version.sdk’
[debug] [ADB] Current device property ‘ro.build.version.sdk’: 29
[debug] [ADB] Device API level: 29
[UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell settings put global hidden_api_policy_pre_p_apps 1’
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell settings put global hidden_api_policy_p_apps 1’
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell settings put global hidden_api_policy 1’
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 wait-for-device’
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell echo ping’
[debug] [AndroidDriver] Pushing settings apk to device.
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package io.appium.settings’
[debug] [ADB] ‘io.appium.settings’ is installed
[debug] [ADB] Getting package info for ‘io.appium.settings’
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package io.appium.settings’
[debug] [ADB] The version code of the installed ‘io.appium.settings’ is greater than the application version code (27 > 20)
[debug] [ADB] There is no need to downgrade ‘io.appium.settings’
[debug] [ADB] Getting IDs of all ‘io.appium.settings’ processes
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell ‘pgrep —help; echo $?»
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell pgrep -f io.appium.settings’
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell appops set io.appium.settings android:mock_location allow’
[debug] [Logcat] Starting logcat capture
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8201
[debug] [ADB] Forwarding system: 8201 to device: 6790
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 forward tcp:8201 tcp:6790’
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package io.appium.uiautomator2.server’
[debug] [ADB] ‘io.appium.uiautomator2.server’ is installed
[debug] [ADB] Getting package info for ‘io.appium.uiautomator2.server’
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package io.appium.uiautomator2.server’
[debug] [ADB] The version name of the installed ‘io.appium.uiautomator2.server’ is greater or equal to the application version name (‘4.5.2’ >= ‘4.5.2’)
[debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled
[debug] [ADB] Checking app cert for C:UsersmhariharanDownloadsappium-1.16.0appium-1.16.0node_modulesappium-uiautomator2-serverapksappium-uiautomator2-server-v4.5.2.apk
[ADB] Using ‘apksigner.bat’ from ‘C:UsersmhariharanAppDataLocalAndroidSdkbuild-tools30.0.1apksigner.bat’
[debug] [ADB] Starting ‘C:UsersmhariharanAppDataLocalAndroidSdkbuild-tools30.0.1apksigner.bat’ with args ‘[«verify»,»—print-certs»,»C:UsersmhariharanDownloadsappium-1.16.0appium-1.16.0node_modulesappium-uiautomator2-serverapksappium-uiautomator2-server-v4.5.2.apk»]’
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] ‘C:UsersmhariharanDownloadsappium-1.16.0appium-1.16.0node_modulesappium-uiautomator2-serverapksappium-uiautomator2-server-v4.5.2.apk’ is already signed.
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package io.appium.uiautomator2.server.test’
[debug] [ADB] ‘io.appium.uiautomator2.server.test’ is installed
[debug] [ADB] Checking app cert for C:UsersmhariharanDownloadsappium-1.16.0appium-1.16.0node_modulesappium-uiautomator2-serverapksappium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Starting ‘C:UsersmhariharanAppDataLocalAndroidSdkbuild-tools30.0.1apksigner.bat’ with args ‘[«verify»,»—print-certs»,»C:UsersmhariharanDownloadsappium-1.16.0appium-1.16.0node_modulesappium-uiautomator2-serverapksappium-uiautomator2-server-debug-androidTest.apk»]’
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] ‘C:UsersmhariharanDownloadsappium-1.16.0appium-1.16.0node_modulesappium-uiautomator2-serverapksappium-uiautomator2-server-debug-androidTest.apk’ is already signed.
[UiAutomator2] Server packages are not going to be (re)installed
[debug] [UiAutomator2] Waiting up to 30000ms for services to be available
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell pm list instrumentation’
[debug] [UiAutomator2] Instrumentation target ‘io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner’ is available
[debug] [ADB] Checking app cert for C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk
[debug] [ADB] Starting ‘C:UsersmhariharanAppDataLocalAndroidSdkbuild-tools30.0.1apksigner.bat’ with args ‘[«verify»,»—print-certs»,»C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»]’
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] ‘C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk’ is already signed.
[debug] [ADB] Getting install status for com.globalmantrainnovations.myfhb
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package com.globalmantrainnovations.myfhb’
[debug] [ADB] ‘com.globalmantrainnovations.myfhb’ is installed
[debug] [ADB] Getting package info for ‘com.globalmantrainnovations.myfhb’
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package com.globalmantrainnovations.myfhb’
[debug] [ADB] The version name of the installed ‘com.globalmantrainnovations.myfhb’ is greater or equal to the application version name (‘1.0.0’ >= ‘1.0.0’)
[debug] [ADB] There is no need to install/upgrade ‘C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk’
[debug] [UiAutomator2] Performing shallow cleanup of automation leftovers
[debug] [UiAutomator2] The following obsolete sessions are still running: [«6347d8d0-a0e1-49e8-b366-e483a52d1649»]
[debug] [UiAutomator2] Cleaning up the obsolete sessions
[debug] [Instrumentation] .
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell am force-stop io.appium.uiautomator2.server.test’
[UiAutomator2] Starting UIAutomator2 server 4.5.2
[UiAutomator2] Using UIAutomator2 server from ‘C:UsersmhariharanDownloadsappium-1.16.0appium-1.16.0node_modulesappium-uiautomator2-serverapksappium-uiautomator2-server-v4.5.2.apk’ and test from ‘C:UsersmhariharanDownloadsappium-1.16.0appium-1.16.0node_modulesappium-uiautomator2-serverapksappium-uiautomator2-server-debug-androidTest.apk’
[UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online.
[debug] [ADB] Creating ADB subprocess with args: [«-P»,5037,»-s»,»803KPSL1691678″,»shell»,»am»,»instrument»,»-w»,»io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner»]
[debug] [Instrumentation] Time: 151.238
[debug] [Instrumentation]
[debug] [Instrumentation] OK (1 test)
[debug] [Instrumentation] The process has exited with code 0
[debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body
[WD Proxy] Got an unexpected response with status undefined: <«code»:»ECONNRESET»>
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body
[debug] [WD Proxy] Got response with status 200: <«sessionId»:»None»,»value»:<«ready»:true,»message»:»UiAutomator2 Server is ready to accept commands»>>
[debug] [UiAutomator2] The initialization of the instrumentation process took 2154ms
[debug] [WD Proxy] Matched ‘/session’ to command name ‘createSession’
[debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8201/wd/hub/session] with body: <«capabilities»:<«firstMatch»:[<«platform»:»LINUX»,»webStorageEnabled»:false,»takesScreenshot»:true,»javascriptEnabled»:true,»databaseEnabled»:false,»networkConnectionEnabled»:true,»locationContextEnabled»:false,»warnings»:<>,»desired»:<«app»:»C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»,»appActivity»:».MainActivity»,»appPackage»:»com.globalmantrainnovations.myfhb»,»noReset»:true,»newCommandTimeout»:0,»platformVersion»:»10″,»automationName»:»Flutter»,»platformName»:»Android»,»deviceName»:»803KPSL1691678″>,»app»:»C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»,»appActivity»:».MainActivity»,»appPackage»:»com.globalmantrainnovations.myfhb»,»noReset»:true,»newCommandTimeout»:0,»platformVersion»:»10″,»automationName»:»Flutter»,»platformName»:»Android»,»deviceName»:»803KPSL1691678″,»deviceUDID»:»803KPSL1691678″>],»alwaysMatch»:<>>>
[debug] [WD Proxy] Got response with status 200: <«sessionId»:»ef15ef2d-2595-4221-9c84-a5d82e26fea4″,»value»:<«sessionId»:»ef15ef2d-2595-4221-9c84-a5d82e26fea4″,»capabilities»:<«firstMatch»:[<«platform»:»LINUX»,»webStorageEnabled»:false,»takesScreenshot»:true,»javascriptEnabled»:true,»databaseEnabled»:false,»networkConnectionEnabled»:true,»locationContextEnabled»:false,»warnings»:<>,»desired»:<«app»:»C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»,»appActivity»:».MainActivity»,»appPackage»:»com.globalmantrainnovations.myfhb»,»noReset»:true,»newCommandTimeout»:0,»platformVersion»:»10″,»automationName»:»Flutter»,»platformName»:»Android»,»deviceName»:»803KPSL1691678″>,»app»:»C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»,»appActivity»:».MainActivity»,»appPackage»:»com.globalmantrainnovations.myfhb»,»noReset»:true,»newCommandTimeout»:0,»platformVersion»:»10″,»automationName»:»Flutter»,»platformName»:»Android»,»deviceName»:»803KPSL1691678″,»deviceUDID»:»803KPSL169.
[WD Proxy] Determined the downstream protocol as ‘W3C’
[debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8201/wd/hub/session/ef15ef2d-2595-4221-9c84-a5d82e26fea4/appium/device/info] with no body
[debug] [WD Proxy] Got response with status 200: <«sessionId»:»ef15ef2d-2595-4221-9c84-a5d82e26fea4″,»value»:<«androidId»:»7c4071310d361b52″,»manufacturer»:»Google»,»model»:»Pixel 2 XL»,»brand»:»google»,»apiVersion»:»29″,»platformVersion»:»10″,»carrierName»:»Jio 4G»,»realDisplaySize»:»1440×2880″,»displayDensity»:560,»networks»:[<«type»:0,»typeName»:»MOBILE»,»subtype»:13,»subtypeName»:»LTE»,»isConnected»:true,»detailedState»:»CONNECTED»,»state»:»CONNECTED»,»extraInfo»:»ims»,»isAvailable»:true,»isFailover»:false,»isRoaming»:false,»capabilities»:<«transportTypes»:»TRANSPORT_CELLULAR»,»networkCapabilities»:»NET_CAPABILITY_IMS,NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED»,»linkUpstreamBandwidthKbps»:14,»linkDownBandwidthKbps»:14,»signalStrength»:-2147483648,»networkSpecifier»:»1″,»SSID»:null>>, <«type»:0,»typeName»:»MOBILE»,»subtype»:13,»subtypeName»:»LTE»,»isConnected»:true,»detailedState»:»CONNECT.
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell dumpsys window’
[AndroidDriver] Screen already unlocked, doing nothing
[UiAutomator2] Starting ‘com.globalmantrainnovations.myfhb/.MainActivity and waiting for ‘com.globalmantrainnovations.myfhb/.MainActivity’
[debug] [ADB] Running ‘C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe -P 5037 -s 803KPSL1691678 shell am start -W -n com.globalmantrainnovations.myfhb/.MainActivity -S’
[debug] [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8201/wd/hub/session/ef15ef2d-2595-4221-9c84-a5d82e26fea4/appium/device/pixel_ratio] with body: <>
[debug] [WD Proxy] Got response with status 200: <«sessionId»:»ef15ef2d-2595-4221-9c84-a5d82e26fea4″,»value»:3.5>
[debug] [WD Proxy] Matched ‘/appium/device/system_bars’ to command name ‘getSystemBars’
[debug] [WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8201/wd/hub/session/ef15ef2d-2595-4221-9c84-a5d82e26fea4/appium/device/system_bars] with body: <>
[debug] [WD Proxy] Got response with status 200: <«sessionId»:»ef15ef2d-2595-4221-9c84-a5d82e26fea4″,»value»:<«statusBar»:98>>
[debug] [WD Proxy] Matched ‘/window/current/size’ to command name ‘getWindowSize’
[debug] [WD Proxy] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8201/wd/hub/session/ef15ef2d-2595-4221-9c84-a5d82e26fea4/window/current/size] with body: <>
[debug] [WD Proxy] Got response with status 200: <«sessionId»:»ef15ef2d-2595-4221-9c84-a5d82e26fea4″,»value»:<«height»:2712,»width»:1440>>
[debug] [FlutterDriver] C:UsersmhariharanAppDataLocalAndroidSdkplatform-toolsadb.exe forward tcp:38350 tcp:38350
[FlutterDriver] Attempt #1
[FlutterDriver] Connecting to Dart Observatory: ws://127.0.0.1:38350/XBeVIhDT7_8=/ws
[FlutterDriver] Connected to ws://127.0.0.1:38350/XBeVIhDT7_8=/ws
[Appium] New FlutterDriver session created successfully, session ad98101b-5142-4671-80b7-a4f275b64e31 added to master session list
[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1596432163511 (10:52:43 GMT+0530 (India Standard Time))
[debug] [MJSONWP (ad98101b)] Cached the protocol value ‘MJSONWP’ for the new session ad98101b-5142-4671-80b7-a4f275b64e31
[debug] [MJSONWP (ad98101b)] Responding to client with driver.createSession() result: <«shell»:null,»allowCors»:false,»reboot»:false,»ipa»:null,»address»:»0.0.0.0″,»port»:4723,»basePath»:»/wd/hub»,»callbackAddress»:null,»callbackPort»:null,»bootstrapPort»:4724,»backendRetries»:3,»sessionOverride»:false,»launch»:false,»logFile»:null,»loglevel»:»debug»,»logTimestamp»:false,»localTimezone»:false,»logNoColors»:false,»webhook»:null,»safari»:false,»defaultDevice»:false,»forceIphone»:false,»forceIpad»:false,»automationTraceTemplatePath»:null,»instrumentsPath»:null,»nodeconfig»:null,»robotAddress»:»0.0.0.0″,»robotPort»:-1,»chromeDriverPort»:null,»chromedriverExecutable»:null,»showConfig»:false,»noPermsCheck»:false,»enforceStrictCaps»:false,»isolateSimDevice»:false,»tmpDir»:»C:UsersMHARIH

1AppDataLocalTemp»,»traceDir»:null,»debugLogSpacing»:false,»suppressKillServer»:false,»longStacktrace»:false,»webkitDebugProxyPort»:27753,»wdaLocalPort»:8100,»defaultCapabilities»:<>,»relaxedSecurityEnabled»:false,»allowInsecure»:[],»denyInsecure»:[],»defaultCommandTimeout»:60,»keepArtifacts»:false,»platf.
[HTTP] GET /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31
[HTTP] <>
[debug] [MJSONWP (ad98101b)] Calling AppiumDriver.getSession() with args: [«ad98101b-5142-4671-80b7-a4f275b64e31»]
[debug] [FlutterDriver] Executing Flutter driver command ‘getSession’
[debug] [MJSONWP (ad98101b)] Responding to client with driver.getSession() result: <«app»:»C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»,»appActivity»:».MainActivity»,»appPackage»:»com.globalmantrainnovations.myfhb»,»noReset»:true,»newCommandTimeout»:36000,»platformVersion»:»10″,»automationName»:»Flutter»,»platformName»:»Android»,»deviceName»:»803KPSL1691678″>
[HTTP] GET /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31
[HTTP] <>
[debug] [MJSONWP (ad98101b)] Calling AppiumDriver.getSession() with args: [«ad98101b-5142-4671-80b7-a4f275b64e31»]
[debug] [FlutterDriver] Executing Flutter driver command ‘getSession’
[debug] [MJSONWP (ad98101b)] Responding to client with driver.getSession() result: <«app»:»C:UsersmhariharanDownloadsmyFHBmyfhbbuildappoutputsapkdebugapp-debug.apk»,»appActivity»:».MainActivity»,»appPackage»:»com.globalmantrainnovations.myfhb»,»noReset»:true,»newCommandTimeout»:36000,»platformVersion»:»10″,»automationName»:»Flutter»,»platformName»:»Android»,»deviceName»:»803KPSL1691678″>
[HTTP] POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/execute
[HTTP] <«script»:»flutter:checkHealth»,»args»:[]>
[debug] [MJSONWP (ad98101b)] Calling AppiumDriver.execute() with args: [«flutter:checkHealth»,[],»ad98101b-5142-4671-80b7-a4f275b64e31″]
[debug] [FlutterDriver] Executing Flutter driver command ‘execute’
[debug] [FlutterDriver] >>> <«command»:»get_health»>
[debug] [FlutterDriver] POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/execute
[HTTP] <«script»:»flutter:clearTimeline»,»args»:[]>
[debug] [MJSONWP (ad98101b)] Calling AppiumDriver.execute() with args: [«flutter:clearTimeline»,[],»ad98101b-5142-4671-80b7-a4f275b64e31″]
[debug] [FlutterDriver] Executing Flutter driver command ‘execute’
[FlutterDriver] <«code»:-32601,»message»:»Method not found»,»data»:<«request»:<«method»:»_clearVMTimeline»,»params»:<>>>>
[debug] [MJSONWP (ad98101b)] Responding to client with driver.execute() result: null
[HTTP] POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/execute
[HTTP] <«script»:»flutter:forceGC»,»args»:[]>
[debug] [MJSONWP (ad98101b)] Calling AppiumDriver.execute() with args: [«flutter:forceGC»,[],»ad98101b-5142-4671-80b7-a4f275b64e31″]
[debug] [FlutterDriver] Executing Flutter driver command ‘execute’
[debug] [MJSONWP (ad98101b)] Responding to client with driver.execute() result: null
[HTTP] POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/element/eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9/click
[HTTP] <«id»:»eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9″>
[debug] [MJSONWP (ad98101b)] Calling AppiumDriver.click() with args: [«eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9″,»ad98101b-5142-4671-80b7-a4f275b64e31»]
[debug] [FlutterDriver] Executing Flutter driver command ‘click’
[debug] [FlutterDriver] >>> <«command»:»tap»,»finderType»:»ByText»,»text»:»Enter your mobile number»>
[HTTP] POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/element/eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9/click
[HTTP] <«id»:»eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9″>
[debug] [MJSONWP (ad98101b)] Calling AppiumDriver.click() with args: [«eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9″,»ad98101b-5142-4671-80b7-a4f275b64e31»]
[debug] [FlutterDriver] Executing Flutter driver command ‘click’
[Appium] Received SIGINT — shutting down
[Logcat] Logcat terminated with code 3221225786, signal null
[Logcat] Logcat terminated with code 3221225786, signal null
[debug] [Instrumentation] The process has exited with code 3221225786

how to resolve this issue, why its hanging when i try to find or click. but i can able to get checkhealth and change context from native to flutter. ican able to take screenshot.

some time am getting driver already dead like that, if anyone facesd same issue tell me how to resolve

Источник

При попытке собрать проект возникает ошибка.
Код проекта:
fun main(args : Array) { println(“Hello”) }

Ошибка:
Error:Kotlin: [Internal Error] java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
at org.jetbrains.kotlin.utils.KotlinJavascriptMetadataUtils.parseMetadata(KotlinJavascriptMetadataUtils.kt:102)
at org.jetbrains.kotlin.utils.KotlinJavascriptMetadataUtils$loadMetadata$2.invoke(KotlinJavascriptMetadataUtils.kt:83)
at org.jetbrains.kotlin.utils.KotlinJavascriptMetadataUtils$loadMetadata$2.invoke(KotlinJavascriptMetadataUtils.kt:57)
at org.jetbrains.kotlin.utils.JsLibraryUtils.traverseArchive(JsLibraryUtils.kt:182)
at org.jetbrains.kotlin.utils.JsLibraryUtils.traverseJsLibrary(JsLibraryUtils.kt:54)
at org.jetbrains.kotlin.utils.KotlinJavascriptMetadataUtils.loadMetadata(KotlinJavascriptMetadataUtils.kt:82)
at org.jetbrains.kotlin.utils.KotlinJavascriptMetadataUtils.loadMetadata(KotlinJavascriptMetadataUtils.kt:90)
at org.jetbrains.kotlin.js.config.JsConfig.checkLibFilesAndReportErrors(JsConfig.java:192)
at org.jetbrains.kotlin.js.config.JsConfig.checkLibFilesAndReportErrors(JsConfig.java:150)
at org.jetbrains.kotlin.cli.js.K2JSCompiler.doExecute(K2JSCompiler.java:221)
at org.jetbrains.kotlin.cli.js.K2JSCompiler.doExecute(K2JSCompiler.java:83)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.java:103)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.java:51)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:92)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$$inlined$ifAlive$lambda$1.invoke(CompileServiceImpl.kt:380)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$$inlined$ifAlive$lambda$1.invoke(CompileServiceImpl.kt:96)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:889)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:96)
at org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:137)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:916)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:888)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:378)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:355)
at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:800)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:682)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.base/java.lang.Thread.run(Thread.java:844)

Ответ

Проблема найдена, это оказывается баг Kotlin/JS компайлера c версией Java 9.
Достаточно даунгрейдится до версии 8 или более ранних версий и все заработает ок.
демонстрация проблемы тут https://vimeo.com/238750933

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Korting kdi 60175 ошибка e4 как устранить
  • Korting kdi 4540 коды ошибок
  • Korting kdi 45165 ошибка e4 как устранить
  • Korg pandora mini memory error
  • Kontakt runtime error in setup script

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии