WAI
Status Update
Comments
vi...@google.com <vi...@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.
"
be...@google.com <be...@google.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.
cm...@google.com <cm...@google.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?
uc...@google.com <uc...@google.com>
cm...@google.com <cm...@google.com> #6
Hannah, I am pretty sure we did enable this. Do you know why/when it was disabled?
Description
I previously reported it as
I was asked to file a new issue, so here it is.
Android Studio 3.6 RC 2
Build #AI-192.7142.36.36.6165589, built on January 28, 2020
Runtime version: 1.8.0_212-release-1586-b4-5784211 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry: ide.new.welcome.screen.force=true, ide.mac.allowDarkWindowDecorations=true, ide.balloon.shadow.size=0
Non-Bundled Plugins: com.developerphil.adbidea, com.idescout.sqlite
Since upgrading to Android Studio 3.6 RC 1 or RC 2, 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.5 so it's a regression in 3.6.
STEPS TO REPRODUCE
1. Define a custom task in your app's build.gradle which declares some resources.
task generateSomeAppResources {
doFirst {
android.defaultConfig.resValue "string", "generated_app_resource", "Some generated value for the app"
}
}
preBuild.dependsOn(generateSomeAppResources)
2. Reference this resource in your app code.
@Override
public void onCreate() {
super.onCreate();
setContentView(R.layout.activity_main)
Toast.makeText(this, R.string.generated_app_resource, Toast.LENGTH_SHORT).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.
$ ag generated_app_resource .
app/build.gradle
30: android.defaultConfig.resValue "string", "generated_app_resource", "Some generated value for the app"
app/build/generated/res/resValues/debug/values/gradleResValues.xml
7: <string name="generated_app_resource" translatable="false">Some generated value for the app</string>
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 and sample project to reproduce the issue.