Skip to content

Instantly share code, notes, and snippets.

View yash10019coder's full-sized avatar

Yash Verma yash10019coder

View GitHub Profile
@yash10019coder
yash10019coder / error.txt
Created November 9, 2021 18:13
Error occurs when we are defining specific visiblities to the targets cycle visiblity error comes
ubuntu@ubuntu-linux:~/opensource/oppia-android$ bazel build //utility/src/main/java/org/oppia/android/util/parser/...
ERROR: /home/ubuntu/opensource/oppia-android/utility/src/main/java/org/oppia/android/util/parser/image/BUILD.bazel:173:19: in android_library rule //utility/src/main/java/org/oppia/android/util/parser/image:image_loader: cycle in dependency graph:
//utility/src/main/java/org/oppia/android/util/parser/html:html_parser
//utility/src/main/java/org/oppia/android/util/parser/html:html_parser_kt
//utility/src/main/java/org/oppia/android/util/parser/image:url_image_parser
//utility/src/main/java/org/oppia/android/util/parser/image:url_image_parser_kt
//utility/src/main/java/org/oppia/android/util/parser/image:url_image_parser_base
//utility/src/main/java/org/oppia/android/util/parser/svg:block_picture_drawable
.-> //utility/src/main/java/org/oppia/android/util/parser/image:image_loader
| //utility/src/main/java/org/oppia/android/util/parser/image:image_loader_kt
@yash10019coder
yash10019coder / error.txt
Created November 9, 2021 18:29
This is the build log while building the app with the targets of parser/image/bazel missing in domain/bazel while building the app build fails.
ubuntu@ubuntu-linux:~/opensource/oppia-android$ bazel build //:oppia
INFO: Analyzed target //:oppia (86 packages loaded, 3919 targets configured).
INFO: Found 1 target...
INFO: From Merging manifest for //app:resources:
Warning: /home/ubuntu/.cache/bazel/_bazel_ubuntu/0d63f9c40fd590ec5c67d8ca9eb79dca/sandbox/linux-sandbox/8/execroot/__main__/app/src/main/AndroidManifest.xml:270:5-274:29 Warning:
provider#androidx.work.impl.WorkManagerInitializer was tagged at AndroidManifest.xml:270 to remove other declarations but no other declaration present
INFO: From Merging compiled Android resources for //app:resources:
Warning: /home/ubuntu/.cache/bazel/_bazel_ubuntu/0d63f9c40fd590ec5c67d8ca9eb79dca/sandbox/linux-sandbox/149/execroot/__main__/bazel-out/android-armeabi-v7a-fastbuild/bin/app/_renamed/resources/AndroidManifest.xml:271:9-275:35 Warning:
provider#androidx.work.impl.WorkManagerInitializer was tagged at AndroidManifest.xml:271 to remove other declarations but no other declaration present
INFO: From Merging
@yash10019coder
yash10019coder / error.txt
Created November 18, 2021 17:07
Errors of android studio artic fox and other previous versions while running tests with junit and roboelectric
"/home/ubuntu/Downloads/android-studio-versions/4.2.1 android-studio-ide-202.7486908-linux/android-studio/jre/bin/java" -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/home/ubuntu/Downloads/android-studio-versions/4.2.1 android-studio-ide-202.7486908-linux/android-studio/lib/idea_rt.jar=41357:/home/ubuntu/Downloads/android-studio-versions/4.2.1 android-studio-ide-202.7486908-linux/android-studio/bin -Dfile.encoding=UTF-8 -classpath /home/ubuntu/Downloads/android-studio-versions/4.2.1 android-studio-ide-202.7486908-linux/android-studio/lib/idea_rt.jar:/home/ubuntu/Downloads/android-studio-versions/4.2.1 android-studio-ide-202.7486908-linux/android-studio/plugins/junit/lib/junit5-rt.jar:/home/ubuntu/Downloads/android-studio-versions/4.2.1 android-studio-ide-202.7486908-linux/android-studio/plugins/junit/lib/junit-rt.jar:/home/ubuntu/Android/Sdk/platforms/android-29/data/res:/home/ubuntu/opensource/oppia-android/app/build/intermediates/javac/debugUnitTest/classes:/home/ubuntu/opensource/oppia-android/app/
Executing tasks: [:app:generateDebugSources, :app:createMockableJar, :app:generateDebugAndroidTestSources, :app:compileDebugUnitTestSources, :app:compileDebugAndroidTestSources, :app:compileDebugSources] in project /home/ubuntu/opensource/oppia-android
> Configure project :app
WARNING: The following project options are deprecated and have been removed:
android.databinding.enableV2
Databinding v1 is removed.
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
Executing tasks: [:app:generateDebugSources, :app:createMockableJar, :app:generateDebugAndroidTestSources, :app:compileDebugUnitTestSources, :app:compileDebugAndroidTestSources, :app:compileDebugSources] in project /home/ubuntu/opensource/oppia-android
> Configure project :app
WARNING: The following project options are deprecated and have been removed:
android.databinding.enableV2
Databinding v1 is removed.
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
/snap/android-studio/115/android-studio/jre/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/snap/android-studio/115/android-studio/lib/idea_rt.jar=46755:/snap/android-studio/115/android-studio/bin -Dfile.encoding=UTF-8 -classpath /snap/android-studio/115/android-studio/lib/idea_rt.jar:/snap/android-studio/115/android-studio/plugins/junit/lib/junit5-rt.jar:/snap/android-studio/115/android-studio/plugins/junit/lib/junit-rt.jar:/home/ubuntu/Android/Sdk/platforms/android-29/android.jar:/home/ubuntu/Android/Sdk/platforms/android-29/data/res:/home/ubuntu/opensource/oppia-android/app/build/intermediates/javac/debugUnitTest/classes:/home/ubuntu/opensource/oppia-android/app/build/intermediates/javac/debug/classes:/home/ubuntu/opensource/oppia-android/app/build/intermediates/compile_and_runtime_not_namespaced_r_class_jar/debug/R.jar:/home/ubuntu/opensource/oppia-android/app/build/tmp/kapt3/classes/debugUnitTest:/home/ubuntu/opensource/oppia-android/app/build/tmp/kotlin-classes/debugUnitTest:/home/ubuntu
ubuntu@ubuntu-linux:~/opensource/oppia-android$ bazel build //:oppia
DEBUG: Rule 'robolectric' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "d4f2eb078a51f4e534ebf5e18b6cd4646d05eae9b362ac40b93831bdf46112c7"
DEBUG: Repository robolectric instantiated at:
/home/ubuntu/opensource/oppia-android/WORKSPACE:97:13: in <toplevel>
Repository rule http_archive defined at:
/home/ubuntu/.cache/bazel/_bazel_ubuntu/0d63f9c40fd590ec5c67d8ca9eb79dca/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
DEBUG: Rule 'tools_android' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1594238320 -0400"
DEBUG: Repository tools_android instantiated at:
/home/ubuntu/opensource/oppia-android/WORKSPACE:108:15: in <toplevel>
Repository rule git_repository defined at:
/snap/android-studio/115/android-studio/jre/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/snap/android-studio/115/android-studio/lib/idea_rt.jar=38055:/snap/android-studio/115/android-studio/bin -Dfile.encoding=UTF-8 -classpath /snap/android-studio/115/android-studio/lib/idea_rt.jar:/snap/android-studio/115/android-studio/plugins/junit/lib/junit5-rt.jar:/snap/android-studio/115/android-studio/plugins/junit/lib/junit-rt.jar:/home/ubuntu/Android/Sdk/platforms/android-29/android.jar:/home/ubuntu/Android/Sdk/platforms/android-29/data/res:/home/ubuntu/opensource/oppia-android/app/build/intermediates/javac/debugUnitTest/classes:/home/ubuntu/opensource/oppia-android/app/build/intermediates/javac/debug/classes:/home/ubuntu/opensource/oppia-android/app/build/intermediates/compile_and_runtime_not_namespaced_r_class_jar/debug/R.jar:/home/ubuntu/opensource/oppia-android/app/build/tmp/kapt3/classes/debugUnitTest:/home/ubuntu/opensource/oppia-android/app/build/tmp/kotlin-classes/debugUnitTest:/home/ubuntu
directories:
# Add the directories you want added as source here
# By default, we've added your entire workspace ('.')
.
# Automatically includes all relevant targets under the 'directories' above
#derive_targets_from_directories: true
targets:
# If source code isn't resolving, add additional targets that compile it here
Syncing project: Initial directory update (no_build)...
Updating VCS...
Running Bazel info...
Command: bazel info --tool_tag=ijwb:IDEA:ultimate --curses=no --color=yes --progress_in_terminal_title=no --
Starting local Bazel server and connecting to it...
Computing VCS working set...
Building Bazel targets...
Build invocation result: success
Parsing build outputs...