Can't Repro
Status Update
Comments
tn...@google.com <tn...@google.com>
be...@google.com <be...@google.com> #2
Do you have a repro project that you could share with us?
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
me...@thomaskeller.biz <me...@thomaskeller.biz> #3
With "packaged" I rather meant "paketized" in the Java-sense, not in a "aar" sense of being packaged.
When I tried the experiment I saw the R.java of my `androidTest` resources being generated in the Java package path `my/app/package/<firstFlavor>/debug/test/R.java`.
I expected them to be generated under the package path `my/app/package/test/R.java`, since my `androidTest` project itself was not flavoured, just the app under test was.
When I tried the experiment I saw the R.java of my `androidTest` resources being generated in the Java package path `my/app/package/<firstFlavor>/debug/test/R.java`.
I expected them to be generated under the package path `my/app/package/test/R.java`, since my `androidTest` project itself was not flavoured, just the app under test was.
be...@google.com <be...@google.com> #4
You are right that the generated R class should be in the my.app.package.test java package (the R.java file should be under "app/build/generated/source/r/androidTest/someFlavor/debug/my/app/package/test/R.java).
I still can't reproduce this: do you have an example project where you see this behavior?
I still can't reproduce this: do you have an example project where you see this behavior?
be...@google.com <be...@google.com>
mi...@gmail.com <mi...@gmail.com> #5
Hi, here's a project for reproducing this bug. Could you try building it and reopen this issue?
In the ExampleInstrumentedTest.java, `com.example.issue37122339.test.R` won't resolve at build time (although it correctly resolves in Android Studio with quick reference and syntax highlighting). If you revert the last commit, which adds the flavor dimension, then building works.
In the ExampleInstrumentedTest.java, `com.example.issue37122339.test.R` won't resolve at build time (although it correctly resolves in Android Studio with quick reference and syntax highlighting). If you revert the last commit, which adds the flavor dimension, then building works.
mi...@gmail.com <mi...@gmail.com> #6
Maintainers, would it be better if I file a new issue?
mi...@gmail.com <mi...@gmail.com> #7
be...@google.com could you confirm that above example project reproduces the issue?
Description
This was tested with Android Studio / Gradle Tools 2.2.0 final, Build / Platform Tools version 24.0.3 and Tools version 25.2.2