I successfully create an Android Wear face and a connected app on a mobile device. The problem is that I have several resource files and classes that are referenced both in modules mobileand wear. The skeletal application I built it from also created a module (not a building one) DigitalWatch, and I guess I could move these common files there and then reference them from my Gradle build files. I looked at some ideas on Stackoverflow, but comments suggest that they don't work.
mobile
wear
DigitalWatch
Here is my project structure. Regular files include res / strings.xml, a utility class, and google json files.
Java / "Common" , gradle
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile project(':common') ... }
, java , xmlns:app="http://schemas.android.com/apk/res-auto" .
xmlns:app="http://schemas.android.com/apk/res-auto"
google-services.json , Google .
google-services.json
Source: https://habr.com/ru/post/1629064/More articles:Retrofit-2.0 - pars response with json inside xml - jsonHow to grant privilege http://marklogic.com/xdmp/privileges/get-role? - marklogicIOS app crashes on device after few days - iosRandom fetch with replacement - c ++How to make an effective dependency injection in Nodejs? - javascriptИспользуйте Frama-c для анализа проекта с помощью инфраструктуры сборки CMake - cVisual Studio finds systemjs typescript definitions but cannot find them at compilation - visual-studioКак я мог бы перемаркировать список элементов Jaxb без создания класса-оболочки? - javaNewtonsoft unified deserialization elements when deserializing a list inside another list - c #How to check all permutations of space-separated values in XSLT? - xmlAll Articles