Repro steps:
(1) Compile chrome_public_apk_incremental on tip of the tree:
nice ninja -C out/gn-dbg/ -j2500 -l20 chrome_public_apk_incremental
(2) Add a new layout in chrome/android/java/res/layout/new_layout.xml
(3) Try to use it in a .java file:
...
import android.view.LayoutInflater;
...
view = inflater.inflate(R.layout.new_layout, container, false);
...
(4) Compile again as in step (1)
Expected: All works.
Actual: The compiler claims that R.layout has no member called new_layout. Somehow, the android_resources rule does not seem to reflect on the changed content of chrome/android/java/res/layout.
Workaround: Delete out/gn-dbg/toolchain.ninja and recompile.
Note: I have non tried the non-incremental build.
Note: My gn configuration:
is_debug = true
use_goma = true
enable_nacl = false
is_component_build = true
disable_incremental_isolated_processes = true
target_os = "android"
Note: I was compiling this on a Linux machine.
Comment 1 by vabr@chromium.org
, Jan 23 2018