Status Update
Comments
vs...@google.com <vs...@google.com> #2
If you are using ASwB, please use Help | File a Bug
. That includes a lot more information, and also get triaged a lot quicker.
bi...@google.com <bi...@google.com>
ch...@google.com <ch...@google.com>
jl...@google.com <jl...@google.com> #3
jl...@google.com <jl...@google.com> #4
Attempting to reproduce this I encountered:
- Error:(3, 15) in _workflow_proto rule //java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:workflow_tests_create_candidate_pp_test_gen_textproto: target '//wireless/android/clockwork/apps/release/workflows/lib:workflows' is not visible from target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:workflow_tests_create_candidate_pp_test_gen_textproto'. Check the visibility declaration of the former target if you think the dependency is legitimate
- Error:(3, 15) Analysis of target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:workflow_tests_create_candidate_pp_test_gen_textproto' failed
- Error:(3, 15) in _workflow_proto rule //java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:workflow_tests_ps_push_pp_test_gen_textproto: target '//wireless/android/clockwork/apps/release/workflows/lib:workflows' is not visible from target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:workflow_tests_ps_push_pp_test_gen_textproto'. Check the visibility declaration of the former target if you think the dependency is legitimate
- Error:(3, 15) Analysis of target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:workflow_tests_ps_push_pp_test_gen_textproto' failed Error:(3, 15) in _workflow_proto rule //java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:workflow_tests_sign_apks_pp_test_gen_textproto: target '//wireless/android/clockwork/apps/release/workflows/lib:workflows' is not visible from target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:workflow_tests_sign_apks_pp_test_gen_textproto'. Check the visibility declaration of the former target if you think the dependency is legitimate Error:(3, 15) Analysis of target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:workflow_tests_sign_apks_pp_test_gen_textproto' failed
- Error:(3, 15) in _generate_test_sh rule //java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:generate_gcl_workflow_tests_ps_push_pp_test_test_sh: target '//wireless/android/clockwork/apps/release/workflows/lib:workflows' is not visible from target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:generate_gcl_workflow_tests_ps_push_pp_test_test_sh'. Check the visibility declaration of the former target if you think the dependency is legitimate
- Error:(3, 15) Analysis of target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:generate_gcl_workflow_tests_ps_push_pp_test_test_sh' failed
- Error:(3, 15) in _generate_test_sh rule //java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:generate_gcl_workflow_tests_sign_apks_pp_test_test_sh: target '//wireless/android/clockwork/apps/release/workflows/lib:workflows' is not visible from target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:generate_gcl_workflow_tests_sign_apks_pp_test_test_sh'. Check the visibility declaration of the former target if you think the dependency is legitimate
- Error:(3, 15) Analysis of target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:generate_gcl_workflow_tests_sign_apks_pp_test_test_sh' failed
- Error:(3, 15) in _generate_test_sh rule //java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:generate_gcl_workflow_tests_create_candidate_pp_test_test_sh: target '//wireless/android/clockwork/apps/release/workflows/lib:workflows' is not visible from target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:generate_gcl_workflow_tests_create_candidate_pp_test_test_sh'. Check the visibility declaration of the former target if you think the dependency is legitimate
- Error:(3, 15) Analysis of target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:generate_gcl_workflow_tests_create_candidate_pp_test_test_sh' failed
- Error:(3, 15) in _workflow_parse rule //java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:tk_workflow_tests_create_candidate_pp_test_workflow_parse: target '//wireless/android/clockwork/apps/release/workflows/lib:workflows' is not visible from target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:tk_workflow_tests_create_candidate_pp_test_workflow_parse'. Check the visibility declaration of the former target if you think the dependency is legitimate
- Error:(3, 15) in _workflow_parse rule //java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:tk_workflow_tests_ps_push_pp_test_workflow_parse: target '//wireless/android/clockwork/apps/release/workflows/lib:workflows' is not visible from target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:tk_workflow_tests_ps_push_pp_test_workflow_parse'. Check the visibility declaration of the former target if you think the dependency is legitimate
- Error:(3, 15) Analysis of target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:tk_workflow_tests_ps_push_pp_test_workflow_parse' failed
- Error:(3, 15) in _workflow_parse rule //java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:tk_workflow_tests_sign_apks_pp_test_workflow_parse: target '//wireless/android/clockwork/apps/release/workflows/lib:workflows' is not visible from target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:tk_workflow_tests_sign_apks_pp_test_workflow_parse'. Check the visibility declaration of the former target if you think the dependency is legitimate
- Error:(3, 15) Analysis of target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:tk_workflow_tests_sign_apks_pp_test_workflow_parse' failed
- Error:(3, 15) Analysis of target '//java/com/google/android/wearable/wearflow/viewer/blueprint/rapid/workflows:tk_workflow_tests_create_candidate_pp_test_workflow_parse' failed /google/src/cloud/jlauridsen/wearflow-client/google3/javatests/com/google/android/wearable/wearflow/viewer/watch/BUILD
- Error:(7, 19) Building javatests/com/google/android/wearable/wearflow/viewer/watch/WearFlowEspressoTestLib-java.jar (1 source jar) failed: (Exit 1) java failed: error executing command (from target //javatests/com/google/android/wearable/wearflow/viewer/watch:WearFlowEspressoTestLib) third_party/java/jdk/jdk-head-k8/bin/java -Xms4g -Xmx4g '-XX:MaxGCPauseMillis=20000' -XX:+IgnoreUnrecognizedVMOptions -XX:-DeallocateHeapPages -XX:-GoogleAdjustGCThreads -XX:-GoogleG1ConcGCThreads ... (remaining 29 arguments skipped). [forge_remote_host=jgdl2]
- Error:(7, 19) Building javatests/com/google/android/wearable/wearflow/viewer/watch/WearFlowEspressoTestLib-java.jar (1 source jar) failed: (Exit 1) java failed: error executing command (from target //javatests/com/google/android/wearable/wearflow/viewer/watch:WearFlowEspressoTestLib) third_party/java/jdk/jdk-head-k8/bin/java -Xms4g -Xmx4g '-XX:MaxGCPauseMillis=20000' -XX:+IgnoreUnrecognizedVMOptions -XX:-DeallocateHeapPages -XX:-GoogleAdjustGCThreads -XX:-GoogleG1ConcGCThreads ... (remaining 29 arguments skipped). [forge_remote_host=jgcn22]
- ERROR
- Error:(63, -1) [AndroidJdkLibsChecker] java.time.Clock is not available
- Error:(63, -1) [AndroidJdkLibsChecker] java.time.Clock is not available
and my Blaze Project looks like this:
directories:
java/com/google/android/wearable/wearflow/viewer
javatests/com/google/android/wearable/wearflow/viewer
# 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
java/com/google/android/wearable/wearflow/viewer:wearflow_viewer_dev
additional_languages:
# Uncomment any additional languages you want supported
# c
# dart
kotlin
# python
test_sources:
# Sources that are categorized as test code by the IDE
javatests/*
# Please uncomment an android-SDK platform. Available SDKs are:
android_sdk_platform: android-32
Any input on how I proceed from here ?
jl...@google.com <jl...@google.com>
fu...@google.com <fu...@google.com> #5
So it turns out the problem is that debuggable is not set to true in the manifest. But I think my feedback is that if you are hitting the "Run Debug" button in the toolbar, it should automatically be setting debuggable to true. That seems like a "sensible default" that would help avoid a lot of developer confusion in the future.
jl...@google.com <jl...@google.com> #6
Siva, when the user is pressing "Run Debug" would the APK be rebuilt with "-c dbg" and thus make the APK application-debuggable ?
vs...@google.com <vs...@google.com> #7
fuego@: Originally, layout inspector was failing to provide a correct error message. It was then updated to clarify that your app is not debuggable. We cannot simply set -c dbg
, because that doesn't work anyway with mobile-install.
The best practice is for every team to have a separate flavor of their app that explicitly sets debuggable in the manifest, e.g.
fu...@google.com <fu...@google.com> #8
Thanks Siva. Is there a bug/FR tracking the mobile-install -c dbg problem?
Description
Expected: can inspect
Observed: Layout Inspector says "Inspection unavailable for non-debuggable app processes", UI never appears
Build: AI-203.7717.56.2031.7935034, 202111210535,
AI-203.7717.56.2031.7935034, JRE 11.0.10+0-b96-7249189x64 JetBrains s.r.o., OS Linux(amd64) v5.15.15-1rodete2-amd64, screens 1536.0x960.0
AS: Arctic Fox | 2020.3.1 Patch 4; Kotlin plugin: 203-1.5.20-release-289-AS7717.8; Android Gradle Plugin: (plugin information not found); Gradle: (gradle version information not found); Gradle JDK: (unable to retrieve additional version information); NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: 3.22.1Source: user_sentiment_feedback
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply all required information.