Open softlion opened 6 years ago
Update for VS2017 15.5
In VS2017 version 15.5, the __library_projects__
folders have been replaced by the "lp" folders. The folder structure seems to be lp\xx\jl\res\values\...
where xx is a number.
This updated version fix the problem, hoping Xamarin won't change the xx "number" after every compilation.
res.srcDirs = [
'C:/Dev/repos/totoapp/Toto/Toto.Droid/Resources',
'C:/Dev/repos/totoapp/Toto/Toto.Droid/obj/Debug/lp/71/jl/res', //XamSvg
'C:/Dev/repos/totoapp/Toto/Toto.Droid/obj/Debug/lp/41/jl/res', //WheelPicker
'C:/Dev/repos/totoapp/Toto/Toto.Droid/obj/Debug/lp/14/jl/res', //Mvvmcross Binding
'C:/Dev/repos/totoapp/Toto/Toto.Droid/obj/Debug/lp/20/jl/res', //Mvvmcross RecyclerView
]
Update for VS2017 15.8, Android Compile 8.1.
The folder structure changes from .../{DroidProject}/obj/Debug/lp/xx/...
to .../{DroidProject}/obj/Debug/MonoAndroid81/lp/xx/...
Hi, when a project layout file (xml) contains custom tags originating from an android library referenced in the android project (like mvvmcross), the gradle build fails as it can't find them.
It can't find them because XamarIdea does not add in
app\build.gradle
(insourceSets/main/res.srcDirs
tag) theobj/Debug/__library_projects__/*
folders, which contains Android resources from these referenced assemblies.A workaround is to manually update the build.gradle file and manually add each
__library_projects__
folder