Fixed
Status Update
Comments
np...@google.com <np...@google.com>
ba...@google.com <ba...@google.com> #2
This was broken by 3bca759a5ff08352de831bb1e9b61b1ec2b3362d.
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
cm...@gmail.com <cm...@gmail.com> #3
Almost 2 months later and this is still broken
jl...@google.com <jl...@google.com> #4
Since there is no progression, I wanted to share our quick-fix for the issue.
#sdkmanager --package_file=${PATH_WORKSPACE}/packages
while read p; do echo "y" | sdkmanager "${p}"; done <${PATH_WORKSPACE}/packages
#sdkmanager --package_file=${PATH_WORKSPACE}/packages
while read p; do echo "y" | sdkmanager "${p}"; done <${PATH_WORKSPACE}/packages
cm...@gmail.com <cm...@gmail.com> #5
jb...@google.com What is the update on this?
jl...@google.com <jl...@google.com>
tn...@google.com <tn...@google.com> #7
This has been fixed on master today (internal ref: ag/2945015) and will be available in the next SDK release.
cm...@gmail.com <cm...@gmail.com> #8
Any ETA on next release?
an...@google.com <an...@google.com> #9
Still broken and not updated? --package_file argument is not usable in it's current form on 26.1.1 straight from the developer site.
Description
Build: AI-221.6008.13.2211.9514443, 202301210135,
AI-221.6008.13.2211.9514443, JRE 11.0.15+0-b2043.56-8887301x64 JetBrains s.r.o., OS Linux(amd64) v6.2.0-33-generic, screens 3840.0x2160.0, 2560.0x1600.0
AS: Electric Eel | 2022.1.1 Patch 1
Kotlin plugin: 221-1.8.0-release-for-android-studio-AS5591.52
Android Gradle Plugin: 4.2.2
Gradle: 6.9
Gradle JDK: version 11.0.15
NDK: from module: 20.0.5594570, from local.properties: (not specified), latest from SDK: 22.1.7171670
CMake: from local.properties: (not specified), latest from SDK: 3.18.1-g262b901, from PATH: 3.22.1
IMPORTANT: Please read
```
Android Studio Kotlin indicates warning of a perfect source; java source has no such warning
This Cursor should be freed up after use with #close()
override fun getProperty(name: String): Any? {
var value: Any? = properties[name]
if (value == null) {
var cursor: Cursor? = null
val columns: Array<String> = arrayOf(COLUMN_VALUE)
synchronized(openHelper as Any) {
mDB = openHelper.readableDatabase
if (name.startsWith(AccountID.ACCOUNT_UUID_PREFIX)) {
val idx: Int = name.indexOf(".")
if (idx == -1) {
value = name // just return the accountUuid
} else {
val args: Array<String> = arrayOf(name.substring(0, idx), name.substring(idx + 1))
cursor = mDB.query(AccountID.TBL_PROPERTIES, columns,
AccountID.ACCOUNT_UUID + "=? AND " + COLUMN_NAME + "=?",
args, null, null, null, "1")
}
} else {
cursor = mDB.query(TABLE_NAME, columns,
"$COLUMN_NAME=?", arrayOf(name), null, null, null, "1")
}
if (cursor != null) {
try {
if ((cursor!!.count == 1) && cursor!!.moveToFirst()) value = cursor!!.getString(0)
} finally {
cursor!!.close()
}
}
}
if (value == null) value = System.getProperty(name)
}
return value
}