Obsolete
Status Update
Comments
vi...@google.com <vi...@google.com> #2
Same here. I have links in a local html file referencing file:///android_res/drawable/ and on all gradle build flavors using another applicationId (added suffix) the Webview only shows broken links.
This behaviour seems not to be connected solely to Android 5.0 since it occurs on Android 4.4.4 too (tested with current cyanogenmod 11 build).
This behaviour seems not to be connected solely to Android 5.0 since it occurs on Android 4.4.4 too (tested with current cyanogenmod 11 build).
hu...@lenovo.corp-partner.google.com <hu...@lenovo.corp-partner.google.com> #3
As a hotfix I added the following code to the gradle buildscript, which generates an additional R.java with changed java package for every flavor. I don't like this solution though.
android.applicationVariants.all{ variant ->
variant.javaCompile.doFirst{
copy {
from "${buildDir}/generated/source/r/${variant.dirName}/com/example/application/R.java"
into "${buildDir}/generated/source/r/${variant.dirName}/com/example/application/${variant.buildType.name }/"
}
File rFile = file("${buildDir}/generated/source/r/${variant.dirName}/com/example/application/${variant.buildType.name }/R.java")
String content = rFile.getText('UTF-8')
String newPackageName = "com.example.application.${variant.buildType.name }";
content = content.replaceAll(/com.example.application/, newPackageName)
rFile.write(content, 'UTF-8')
}
}
android.applicationVariants.all{ variant ->
variant.javaCompile.doFirst{
copy {
from "${buildDir}/generated/source/r/${variant.dirName}/com/example/application/R.java"
into "${buildDir}/generated/source/r/${variant.dirName}/com/example/application/${
}
File rFile = file("${buildDir}/generated/source/r/${variant.dirName}/com/example/application/${
String content = rFile.getText('UTF-8')
String newPackageName = "com.example.application.${
content = content.replaceAll(/com.example.application/, newPackageName)
rFile.write(content, 'UTF-8')
}
}
Description
Failed Test Tools:15_r2 / 12699308
Country Code:CN
1. ctsWifiTestCase Failed:
android.net.wifi.cts.WifiManagerTest#testWifiManagerScanWhenWifiOffLocationTurnedOn
fail java.lang.AssertionError
2. CtsNetTestCase failed
ava.lang.AssertionError: Did not receive onLost callback after disabling wifi
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertNotNull(Assert.java:713)
at android.net.cts.util.CtsNetUtils.disconnectFromWifi(CtsNetUtils.java:372)
at android.net.cts.util.CtsNetUtils.ensureWifiDisconnected(CtsNetUtils.java:307)
at android.net.cts.BatteryStatsManagerTest.testReportNetworkInterfaceForTransports(BatteryStatsManagerTest.java:128)
3. CtsTetheringTest failed
java.lang.AssertionError: expected: android.net.TetheringManager$TetheringRequest<TetheringRequest [ type= 1, localIPv4Address=
4.GtsGmscoreHostTestCase failed:
java.lang.AssertionError: on-device tests failed:
com.google.android.gts.wifi.WifiScannerTest#testGetAvailableChannels:
junit.framework.AssertionFailedError: WifiScanListener.onResults never called
The Gts test info:
Android Version: 15
Failed Test Tools:12_r2 / 12590200
Country Code:CN
All the four case are releate to wifi, and we asked QCOM for help, but they said those are google issue.