Status Update
Comments
vm...@google.com <vm...@google.com>
je...@google.com <je...@google.com>
cm...@google.com <cm...@google.com> #2
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Canary 2
- Android Gradle Plugin 8.8.0-alpha02
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
mi...@gmail.com <mi...@gmail.com> #3
I have uninstalled the older version, so I can not provide a screenshot.
I´m using a sub-projekt/sub-module (not sure about the correct name), which
I include in my phone app and wear app.
This sub-project contains the string resource files (the phone and wear
project does not contain any string resources).
Just an example. If I edit a preference xml file in my phone project and
use for title "@string/new_string_resource" a resource, which does not
exist,
Android Studio marks this resource red. In the mouse-over menu I select
"Create ...", then the dialog for creating a new string resource will be
open.
In older version (Giraffe), I could select the sub-project as source-set,
to add this new string to my string resources in the sub-project.
In the new versions (koala and ladybug) I can only can select the
source-sets of the phone project (main, debug, ...), but there are no
string resources, yet.
Maybe I´m doing something wrong in the gradle file to import these
resources to the main project, but I have not found a solution, yet.
Here is the gradle file of the phone project:
Here is the gradle file of the sub-project containing the string resources:
Thank you!
Regards, Michael
Am Mo., 16. Sept. 2024 um 13:31 Uhr schrieb <buganizer-system@google.com>:
cm...@google.com <cm...@google.com> #4
an...@google.com <an...@google.com> #5
The fix referenced in R.string.foo
in Java or Kotlin code, and then selects a sub-module. That would result in non-compiling code (for non-transtive resources, anyway), since the R
reference wasn't updated.
This bug is a slightly different scenario, and involves resource references in XML files. For those files, there's no problem with adding the resource to a sub-module, since the way the resource is referenced doesn't change.
I'll look into whether we can limit the previous fix only to Java and Kotlin files.
an...@google.com <an...@google.com> #6
I've submitted a fix for this which should be available in the next canary build of Android Studio.
an...@google.com <an...@google.com> #7
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Canary 3
- Android Gradle Plugin 8.8.0-alpha03
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
####################################################
Please provide all of the following information, otherwise we may not be able to route your bug report.
####################################################
1. Describe the bug or issue that you're seeing.
In the new beta version of Android Studio it is not possible to create a new string value resource in the strings.xml of the submodule from another submodule. I have one strings.xml located in the common submodule, which is integrated by using "implementation project(path: ':common')" in build.gradle of the main module.
I use this since years, as I only want to have one strings.xml for all submodules to have only one file to translate and to use the same strings in all submodules.
In the last release versions it was possible to create a new string resource value in this common submodule with the main module, but in the new beta it is not possible anymore!
Please fix this!
Please also have a look to the screenshot I made.
For more information on how to get your bug routed quickly, see
Build: AI-242.20224.300.2421.12312915, 202409032002
AS: Ladybug | 2024.2.1 Beta 1
AI-242.20224.300.2421.12312915, JRE 21.0.3+-12282718-b509.11x64 JetBrains s.r.o., OS Windows 11(amd64) v10.0 , screens 1920x1080 (100%)
Android Gradle Plugin: 8.6.0
Gradle: 8.8
Gradle JDK: JetBrains Runtime 21.0.3
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
```