Refer to my previous question ERROR:flutter/runtime/dart_vm_initializer.cc(41) on url_launcher , I'm doing./gradlew build to my android directory on project, but it show the error that
Execution failed for task ':url_launcher_android:testDebugUnitTest'.
> There were failing tests. See the report at: file:///C:/projectflutter/hospital-list/build/url_launcher_android/reports/tests/testDebugUnitTest/index.html
I don't know what is happened on here, and it seems impossible for url_launcher to having bug inside, so anyone knows where the problem is? i really want to finish my project and it's only failed on url_launcher
Task :url_launcher_android:testDebugUnitTest
io.flutter.plugins.urllauncher.MethodCallHandlerImplTest > stopListening_doesNothingWhenUnset FAILED
java.lang.RuntimeException at ReflectionHelpers.java:223
Caused by: java.lang.RuntimeException at ReflectionHelpers.java:208
Caused by: java.lang.IllegalAccessException at FieldAccessorImpl.java:137
io.flutter.plugins.urllauncher.MethodCallHandlerImplTest > stopListening_unregistersExistingChannel FAILED
java.lang.RuntimeException at ReflectionHelpers.java:223
Caused by: java.lang.RuntimeException at ReflectionHelpers.java:208
Caused by: java.lang.IllegalAccessException at FieldAccessorImpl.java:137
io.flutter.plugins.urllauncher.MethodCallHandlerImplTest > startListening_unregistersExistingChannel FAILED
java.lang.RuntimeException at ReflectionHelpers.java:223
Caused by: java.lang.RuntimeException at ReflectionHelpers.java:208
Caused by: java.lang.IllegalAccessException at FieldAccessorImpl.java:137
io.flutter.plugins.urllauncher.MethodCallHandlerImplTest > onMethodCall_closeWebView FAILED
java.lang.RuntimeException at ReflectionHelpers.java:223
Caused by: java.lang.RuntimeException at ReflectionHelpers.java:208
Caused by: java.lang.IllegalAccessException at FieldAccessorImpl.java:137
io.flutter.plugins.urllauncher.MethodCallHandlerImplTest > onMethodCall_canLaunchReturnsFalse FAILED
java.lang.RuntimeException at ReflectionHelpers.java:223
Caused by: java.lang.RuntimeException at ReflectionHelpers.java:208
Caused by: java.lang.IllegalAccessException at FieldAccessorImpl.java:137
io.flutter.plugins.urllauncher.MethodCallHandlerImplTest > onMethodCall_launchReturnsNoActivityError FAILED
java.lang.RuntimeException at ReflectionHelpers.java:223
Caused by: java.lang.RuntimeException at ReflectionHelpers.java:208
Caused by: java.lang.IllegalAccessException at FieldAccessorImpl.java:137
io.flutter.plugins.urllauncher.MethodCallHandlerImplTest > startListening_registersChannel FAILED
java.lang.RuntimeException at ReflectionHelpers.java:223
Caused by: java.lang.RuntimeException at ReflectionHelpers.java:208
Caused by: java.lang.IllegalAccessException at FieldAccessorImpl.java:137
io.flutter.plugins.urllauncher.MethodCallHandlerImplTest > onMethodCall_launchReturnsTrue FAILED
java.lang.RuntimeException at ReflectionHelpers.java:223
Caused by: java.lang.RuntimeException at ReflectionHelpers.java:208
Caused by: java.lang.IllegalAccessException at FieldAccessorImpl.java:137
io.flutter.plugins.urllauncher.MethodCallHandlerImplTest > onMethodCall_launchReturnsActivityNotFoundError FAILED
java.lang.RuntimeException at ReflectionHelpers.java:223
Caused by: java.lang.RuntimeException at ReflectionHelpers.java:208
Caused by: java.lang.IllegalAccessException at FieldAccessorImpl.java:137
io.flutter.plugins.urllauncher.MethodCallHandlerImplTest > onMethodCall_canLaunchReturnsTrue FAILED
java.lang.RuntimeException at ReflectionHelpers.java:223
Caused by: java.lang.RuntimeException at ReflectionHelpers.java:208
Caused by: java.lang.IllegalAccessException at FieldAccessorImpl.java:137
io.flutter.plugins.urllauncher.WebViewActivityTest > extractHeaders_returnsEmptyMapWhenHeadersBundleNull PASSED
11 tests completed, 10 failed
> Task :url_launcher_android:testDebugUnitTest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':url_launcher_android:testDebugUnitTest'.
> There were failing tests. See the report at: file:///C:/projectflutter/hospital-list/build/url_launcher_android/reports/tests/testDebugUnitTest/index.html
I already solved this problem, refering to this answer
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.