{"action":"created","issue":{"url":"https://api.github.com/repos/EgorBo/Xamaridea/issues/14","repository_url":"https://api.github.com/repos/EgorBo/Xamaridea","labels_url":"https://api.github.com/repos/EgorBo/Xamaridea/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/EgorBo/Xamaridea/issues/14/comments","events_url":"https://api.github.com/repos/EgorBo/Xamaridea/issues/14/events","html_url":"https://github.com/EgorBo/Xamaridea/issues/14","id":283491546,"node_id":"MDU6SXNzdWUyODM0OTE1NDY=","number":14,"title":"Android Studio 3 and mvvmcross","user":{"login":"softlion","id":190756,"node_id":"MDQ6VXNlcjE5MDc1Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/190756?v=4","gravatar_id":"","url":"https://api.github.com/users/softlion","html_url":"https://github.com/softlion","followers_url":"https://api.github.com/users/softlion/followers","following_url":"https://api.github.com/users/softlion/following{/other_user}","gists_url":"https://api.github.com/users/softlion/gists{/gist_id}","starred_url":"https://api.github.com/users/softlion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softlion/subscriptions","organizations_url":"https://api.github.com/users/softlion/orgs","repos_url":"https://api.github.com/users/softlion/repos","events_url":"https://api.github.com/users/softlion/events{/privacy}","received_events_url":"https://api.github.com/users/softlion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-20T08:59:43Z","updated_at":"2018-09-25T20:53:57Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nwhen 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.\r\n\r\nIt can't find them because XamarIdea does not add in ``app\\build.gradle`` (in ``sourceSets/main/res.srcDirs`` tag) the ``obj/Debug/__library_projects__/*`` folders, which contains Android resources from these referenced assemblies.\r\n\r\nA workaround is to manually update the build.gradle file and manually add each ``__library_projects__`` folder\r\n\r\n\r\n```\r\napply plugin: 'com.android.application'\r\n\r\nandroid {\r\n    compileSdkVersion 26\r\n    buildToolsVersion \"26.0.2\"\r\n    defaultConfig {\r\n        applicationId \"com.egorbo.javashallowcopyforxamarinproject\"\r\n        minSdkVersion 21\r\n        targetSdkVersion 26\r\n        versionCode 1\r\n        versionName \"1.0\"\r\n    }\r\n    buildTypes {\r\n        release {\r\n            minifyEnabled false\r\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n        }\r\n    }\r\n\r\n    sourceSets {\r\n        main {\r\n            res.srcDirs = [\r\n                    'C:/Dev/repos/totoapp/Toto/Toto.Droid/Resources',\r\n                    'C:/Dev/repos/totoapp/Toto/Toto.Droid/obj/Debug/__library_projects__/XamSvg.Droid/library_project_imports/res',\r\n                    'C:/Dev/repos/totoapp/Toto/Toto.Droid/obj/Debug/__library_projects__/Vapolia.WheelPickerDroid/library_project_imports/res',\r\n                    'C:/Dev/repos/totoapp/Toto/Toto.Droid/obj/Debug/__library_projects__/MvvmCross.Binding.Droid/library_project_imports/res',\r\n                    'C:/Dev/repos/totoapp/Toto/Toto.Droid/obj/Debug/__library_projects__/MvvmCross.Droid.Support.V7.RecyclerView/library_project_imports/res'\r\n            ]\r\n        }\r\n    }\r\n}\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/EgorBo/Xamaridea/issues/comments/424497910","html_url":"https://github.com/EgorBo/Xamaridea/issues/14#issuecomment-424497910","issue_url":"https://api.github.com/repos/EgorBo/Xamaridea/issues/14","id":424497910,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDQ5NzkxMA==","user":{"login":"pedroccrl","id":8301913,"node_id":"MDQ6VXNlcjgzMDE5MTM=","avatar_url":"https://avatars1.githubusercontent.com/u/8301913?v=4","gravatar_id":"","url":"https://api.github.com/users/pedroccrl","html_url":"https://github.com/pedroccrl","followers_url":"https://api.github.com/users/pedroccrl/followers","following_url":"https://api.github.com/users/pedroccrl/following{/other_user}","gists_url":"https://api.github.com/users/pedroccrl/gists{/gist_id}","starred_url":"https://api.github.com/users/pedroccrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedroccrl/subscriptions","organizations_url":"https://api.github.com/users/pedroccrl/orgs","repos_url":"https://api.github.com/users/pedroccrl/repos","events_url":"https://api.github.com/users/pedroccrl/events{/privacy}","received_events_url":"https://api.github.com/users/pedroccrl/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T20:53:57Z","updated_at":"2018-09-25T20:53:57Z","author_association":"NONE","body":"Update for VS2017 15.8, Android Compile 8.1.\r\n\r\nThe folder structure changes from `.../{DroidProject}/obj/Debug/lp/xx/...` to `.../{DroidProject}/obj/Debug/MonoAndroid81/lp/xx/...`\r\n"}}
{"actor":{"display_login":"pedroccrl"}}