Closed verzth closed 7 years ago
same issue
+1 Android Studio 2.2 & grade:2.2.0
+1 the plugin is not compatible with gradle 2.2
this seems to fix the problem, i don't know about R.
@@ -139,7 +139,7 @@ private List getMergedInputResourceSets(List inputResourceSet) {
embeddedAarDirs.each { aarPath ->
try {
def resname = (aarPath.split("build/intermediates/exploded-aar/")[1]).replace('/', ':');
- def rs = ResourceSetClass.newInstance([resname] as Object[])
+ def rs = ResourceSetClass.newInstance(resname as String, true)
rs.addSource(file("$aarPath/res"))
// println "ResourceSet is " + rs
newInputResourceSet += rs
@@ -325,6 +325,7 @@ task embedManifests << {
}
save(xmlDocument, new File(outManifestLocation));
if (outAaptSafeManifestLocation != null) {
+ mkdir("build/intermediates/bundles/release/aapt")
new PlaceholderEncoder().visit(xmlDocument);
save(xmlDocument, new File(outAaptSafeManifestLocation));
}
Ok, but there's still the bug with the R.java of the aar that is not embedded into the fat aar :)
Kindly test with the updated version which appears to be compatible with 2.2.0 and report issues if any.
Hi @Anvesh46, Can you please check with the updated version release just now? I don't get this issue with my test cases, so can't test.
please close it it is working
File not found X:\Something\build\intermediates\bundles\release\aapt\AndroidManifest.xml