Assigned
Status Update
Comments
ra...@google.com <ra...@google.com> #2 Restricted+
Restricted+
Comment has been deleted.
ra...@google.com <ra...@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')
}
}
ra...@google.com <ra...@google.com> #4
I've recenly encountered this issue and I must say it's quite a nuisance. Searched half of the Internet just to find out that the problem lies in Gradle's applicationIdSuffix :). I think this bug should be reported to Android SDK Build Tools devs, because only they can do something about it.
ch...@gmail.com <ch...@gmail.com> #5
IMHO it's the case of Android platform problem. Resources are packed, WebView tries to load them from wrong place. It's not build tools that put them in wrong place.
And by the way it's very frustrating bug.
And by the way it's very frustrating bug.
ra...@google.com <ra...@google.com> #6
[Comment deleted]
Description
1. play any video in Youtube
2. press "settings" key from remote controller
3. an unexpected tab will appear and disappear in menu shortly (see NG-1.mp4 , time stamp 00:05~00:06)
case-2
1. play any video in Youtube
2. press "settings" key twice , open/close menu
3. press "Home" key form remote controller
4. an unexpected tab will appear and disappear in Google Home Launcher shortly (see NG-2.mp4 , time stamp 00:10~00:12)
repro. rate = 100%
[addition info]
AOC R+3.0 AN11 have the same phenomenon