Skip to content

Instantly share code, notes, and snippets.

View shankarpriyank's full-sized avatar

Priyank Shankar shankarpriyank

View GitHub Profile
@shankarpriyank
shankarpriyank / Error 2
Created February 23, 2022 18:26
Error While Running Test Cases
Execution failed for task ':app:compileDebugAndroidTestKotlin'.
> Internal compiler error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
"C:\Program Files (x86)\Java\jdk1.8.0_202\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:C:\Program Files\Android\Android Studio\lib\idea_rt.jar=58997:C:\Program Files\Android\Android Studio\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Android\Android Studio\lib\idea_rt.jar" com.intellij.rt.execution.CommandLineWrapper C:\Users\shank\AppData\Local\Temp\idea_classpath683113976 com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 org.oppia.android.app.profile.ProfileChooserFragmentTest
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:64)
Caused by: java.lang.annotation.AnnotationFormatError: In
"C:\Program Files (x86)\Java\jdk1.8.0_202\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:C:\Program Files\Android\Android Studio\lib\idea_rt.jar=55842:C:\Program Files\Android\Android Studio\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\shank\AppData\Local\Temp\classpath738337483.jar com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 org.oppia.android.app.settings.profile.ProfileEditActivityTest
Exception in thread "main" java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.robolectric.annotation.Config.application()
at java.lang.reflect.Method.getDefaultValue(Method.java:612)
at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:132)
at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:85)
at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:266)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)
at sun.reflect.annotation.AnnotationP
> Task :configureCMakeDebug[armeabi-v7a]
C/C++: googleDebug|armeabi-v7a :CMake Warning at C:/Users/shank/AppData/Local/Android/Sdk/ndk/23.1.7779620/build/cmake/android-legacy.toolchain.cmake:416 (message):
C/C++: googleDebug|armeabi-v7a : An old version of CMake is being used that cannot automatically detect
C/C++: googleDebug|armeabi-v7a : compiler attributes. Compiler identification is being bypassed. Some
C/C++: googleDebug|armeabi-v7a : values may be wrong or missing. Update to CMake 3.19 or newer to use
C/C++: googleDebug|armeabi-v7a : CMake's built-in compiler identification.
C/C++: googleDebug|armeabi-v7a :Call Stack (most recent call first):
C/C++: googleDebug|armeabi-v7a : C:/Users/shank/AppData/Local/Android/Sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake:55 (include)
C/C++: googleDebug|armeabi-v7a : C:/Users/shank/AppData/Local/Android/Sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
C/C++: googleDebug|armeabi-v7a : CMakeLists.txt:3 (project)
> Task :app:mergeDevDebugResources FAILED
Execution failed for task ':app:mergeDevDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed. Check logs for details.
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:mergeDevDebugResources'.
Could not open init generic class cache for initialization script 'C:\Users\shank\AppData\Local\Temp\wrapper_init12.gradle' (C:\Users\shank\.gradle\caches\7.1\scripts\eghfcfuicov0gzujh14nfbnp2).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.cache.CacheOpenException: Could not open init generic class cache for initialization script 'C:\Users\shank\AppData\Local\Temp\wrapper_init12.gradle' (C:\Users\shank\.gradle\caches\7.1\scripts\eghfcfuicov0gzujh14nfbnp2).
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.open(DefaultPersistentDirectoryStore.java:91)
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.open(DefaultPersistentDirectoryStore.java:43)
2022-06-20 14:06:30.593 14696-14696/app.organicmaps.debug W/ganicmaps.debu: Accessing hidden method Ldalvik/system/DexPathList;-><init>(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/String;Ljava/io/File;Z)V (greylist-max-o, linking, denied)
2022-06-20 14:06:30.593 14696-14696/app.organicmaps.debug W/ganicmaps.debu: Accessing hidden method Ldalvik/system/DexPathList;->splitDexPath(Ljava/lang/String;)Ljava/util/List; (greylist-max-o, linking, denied)
2022-06-20 14:06:30.593 14696-14696/app.organicmaps.debug W/ganicmaps.debu: Accessing hidden method Ldalvik/system/DexPathList;->concat(Ljava/lang/Class;[Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object; (blacklist, linking, denied)
2022-06-20 14:06:30.594 14696-14696/app.organicmaps.debug W/ganicmaps.debu: Accessing hidden method Ldalvik/system/DexPathList;->getAllNativeLibraryDirectories()Ljava/util/List; (blacklist, linking, denied)
2022-06-20 14:06:30.594 14696-14696/app.organicmaps.debug W/ganicmaps.debu: Accessing hidden method Ldalvik/system/De
2022-06-23 21:44:42.245 27674-27674/app.organicmaps.debug I/Perf: Connecting to perf service.
2022-06-23 21:44:42.259 27674-27674/app.organicmaps.debug I/ForceDarkHelper: packageName:app.organicmaps.debug getForceDarkConfigInfo null forceDarkAppConfigJsonString:null
2022-06-23 21:44:42.259 27674-27674/app.organicmaps.debug I/ForceDarkHelper: ForceDarkConfigInfo: null
2022-06-23 21:44:42.261 27674-27674/app.organicmaps.debug I/MiuiForceDarkConfig: MiuiForceDarkConfig setConfig density:2.750000, mainRule:17, secondaryRule:0, tertiaryRule:0
2022-06-23 21:44:42.263 27674-27674/app.organicmaps.debug D/NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: true
2022-06-23 21:44:42.125 27674-27674/? W/Zygote: Unable to open libbeluga.so: dlopen failed: library "libbeluga.so" not found.
2022-06-23 21:44:42.143 27674-27674/? I/ganicmaps.debu: Late-enabling -Xcheck:jni
2022-06-23 21:44:42.164 27674-27674/? I/ganicmaps.debu: Unquickening 20 vdex files!
2022-06-23 21:44:42
2022-06-26 23:29:28.226 20744-20898/app.organicmaps.debug A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x68 in tid 20898 (Thread-17), pid 20744 (ganicmaps.debug)
2022-06-26 23:29:28.450 20744-20744/app.organicmaps.debug E/vulkan: native_window_api_connect() failed: Invalid argument (-22)
2022-06-26 23:29:28.450 20744-20744/app.organicmaps.debug D/OMcore: vulkan/android_vulkan_context_factory.cpp:295 SetVulkanSurface() Vulkan error: vkCreateAndroidSurfaceKHR finished with code VK_ERROR_NATIVE_WINDOW_IN_USE_KHR
2022-06-26 23:29:28.450 20744-20744/app.organicmaps.debug W/OMcore: maps/Framework.cpp:199 CreateDrapeEngine() Invalid Vulkan API context.
2022-06-26 23:29:28.455 20744-20744/app.organicmaps.debug D/OMcore: opengl/androidoglcontextfactory.cpp:339 CreateWindowSurface() Backbuffer format: RGB8
2022-06-26 23:29:28.456 20744-20744/app.organicmaps.debug E/libEGL: eglCreateWindowSurface: native_window_api_connect (win=0xb400007903636010) failed (0xffffffea) (already connected to anoth
2022-06-27 17:08:27.412 20124-20124/app.organicmaps.debug W/ganicmaps.debu: Accessing hidden method Landroid/app/ApplicationLoaders;-><clinit>()V (blacklist, linking, denied)
2022-06-27 17:08:27.412 20124-20124/app.organicmaps.debug W/ganicmaps.debu: Accessing hidden method Landroid/app/ApplicationLoaders;-><init>()V (greylist-max-o, linking, denied)
2022-06-27 17:08:27.412 20124-20124/app.organicmaps.debug W/ganicmaps.debu: Accessing hidden method Landroid/app/ApplicationLoaders;-><init>()V (greylist-max-o, linking, denied)
2022-06-27 17:08:27.413 20124-20124/app.organicmaps.debug W/ganicmaps.debu: Accessing hidden field Landroid/app/ApplicationLoaders;->mLoaders:Landroid/util/ArrayMap; (greylist, linking, allowed)
2022-06-27 17:08:27.413 20124-20124/app.organicmaps.debug W/ganicmaps.debu: Accessing hidden field Landroid/app/ApplicationLoaders;->mSystemLibsCacheMap:Ljava/util/Map; (blacklist, linking, denied)
2022-06-27 17:08:27.413 20124-20124/app.organicmaps.debug W/ganicmaps.debu: Accessing hidden method