Status Update
Comments
rm...@google.com <rm...@google.com> #2
Microsoft doc: https://support.microsoft.com/en-ca/help/2999226/update-for-universal-c-runtime-in-windows
Platform 28.0.2 readme:https://developer.android.com/studio/releases/platform-tools
"
Updated Windows requirements
The platform tools now depend on the Windows Universal C Runtime, which is usually installed by default via Windows Update. If you see errors mentioning missing DLLs, you may need to manually fetch and install the runtime package.
"
Platform 28.0.2 readme:
"
Updated Windows requirements
The platform tools now depend on the Windows Universal C Runtime, which is usually installed by default via Windows Update. If you see errors mentioning missing DLLs, you may need to manually fetch and install the runtime package.
"
gr...@ynab.com <gr...@ynab.com> #3
Note: see also b/129008605
gr...@ynab.com <gr...@ynab.com> #4
Bug cleaning...what is the status on this? Looks like the depending bug is fixed.
gr...@ynab.com <gr...@ynab.com> #5
I noticed that the WINDOWS_UCRT_CHECK_ENABLED
Studio flag defaults to false
. Should this be set to true
eventually, or can this code be deleted?
Description
AI-182.5107.16.33.5199772, JRE 1.8.0_152-release-1248-b01x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14.2 unknown, screens 1920x1200, 3200x1800; Retina
Android Gradle Plugin: 3.3.0
Gradle: 4.10.2
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: (not found);
IMPORTANT: Please read
Since upgrading to Android Studio 3.3, the IDE no longer recognises string resources declared with resValue in a custom build task. They show up red in the IDE.
The code still compiles and runs correctly, so it's just an IDE bug where it is unable to resolve these symbols.
This worked fine with AS 3.2 so it's a regression in 3.3.
STEPS TO REPRODUCE
1. Define a custom task in your app's build.gradle which declared some resources.
task resourceTest {
doFirst {
android.defaultConfig.resValue "string", "resource_test", "This is a test"
}
}
preBuild.dependsOn(resourceTest)
2. Reference this resource in Application.onCreate().
@Override
public void onCreate() {
super.onCreate();
String resourceTest = getString(R.string.resource_test);
Toast.makeText(this, resourceTest, Toast.LENGTH_LONG).show();
3. Verify that the app compiles and runs successfully, and the toast is shown correctly.
4. Search for the name of the resource, and observe that it exists in generated resource files.
$ grep -nrI "resource_test" .
./EvergreenApp/build.gradle:242: android.defaultConfig.resValue "string", "resource_test", "This is a test"
./EvergreenApp/build/generated/res/resValues/develop/debug/values/generated.xml:9: <string name="resource_test" translatable="false">This is a test</string>
./EvergreenApp/build/generated/not_namespaced_r_class_sources/developDebug/processDevelopDebugResources/r/ynab/app/R.java:7699: public static final int resource_test=0x7f100186;
./EvergreenApp/build/intermediates/res/symbol-table-with-package/develop/debug/package-aware-r.txt:3525:string resource_test
./EvergreenApp/build/intermediates/incremental/mergeDevelopDebugResources/merged.dir/values/values.xml:1394: <string name="resource_test" translatable="false">This is a test</string>
./EvergreenApp/build/intermediates/incremental/mergeDevelopDebugResources/merger.xml:4856: [CONTENT SNIPPED]
./EvergreenApp/build/intermediates/symbols/develop/debug/R.txt:3524:int string resource_test 0x7f100186
./EvergreenApp/build/intermediates/merged-not-compiled-resources/develop/debug/values/values.xml:1394: <string name="resource_test" translatable="false">This is a test</string>
./EvergreenApp/src/main/java/ynab/app/application/App.java:186: String resourceTest = getString(R.string.resource_test);
5. Notice that the IDE is flagging this resource in red. Attempting to "Go to declaration" results in an error: "Cannot find declaration to go to".
See attached screenshot.