<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Extend Android nRF Mesh APP to support Generic Battery Server model</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108125/extend-android-nrf-mesh-app-to-support-generic-battery-server-model</link><description>Hello, 
 I have downloaded the latest Android nRF Mesh library from github ( github.com/.../main) and I have set up all the necessary configuration in Android Studio and everything is working fine, but when I try to extend the APP to support the generic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 11 Feb 2024 06:05:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108125/extend-android-nrf-mesh-app-to-support-generic-battery-server-model" /><item><title>RE: Extend Android nRF Mesh APP to support Generic Battery Server model</title><link>https://devzone.nordicsemi.com/thread/468298?ContentTypeID=1</link><pubDate>Sun, 11 Feb 2024 06:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da934618-0d36-4261-a1ec-6afc16e52725</guid><dc:creator>Roshan Rajaratnam</dc:creator><description>&lt;p&gt;Glad that helped. Nope you don&amp;#39;t have to do anything there :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extend Android nRF Mesh APP to support Generic Battery Server model</title><link>https://devzone.nordicsemi.com/thread/468256?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2024 15:15:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:decb9bb6-a9b7-4724-a742-13713942188c</guid><dc:creator>CSB</dc:creator><description>&lt;p&gt;Hi, so if I understood you correctly I should remove this below line from build.gradle (:app)&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;implementation &amp;#39;no.nordicsemi.android:mesh:3.3.2&amp;#39;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;It seems to build mesh library now, and I can actaully change the generic battery declaration from private to public now, you have just saved my weekend, Thanks.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;What about in build.gradle (:mesh) - Do I need to do any changes here, for example remove below lines?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;if &lt;/span&gt;(&lt;span&gt;rootProject&lt;/span&gt;.file(&lt;span&gt;&amp;#39;gradle/publish-module.gradle&amp;#39;&lt;/span&gt;).exists()) {&lt;br /&gt;&amp;nbsp; &amp;nbsp;ext &lt;span&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; POM_ARTIFACT_ID=&lt;span&gt;&amp;quot;mesh&amp;quot;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; POM_NAME=&lt;span&gt;&amp;quot;A Bluetooth Mesh library for Android&amp;quot;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; POM_PACKAGING=&lt;span&gt;&amp;quot;aar&amp;quot;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp; apply &lt;span&gt;from&lt;/span&gt;: &lt;span&gt;rootProject&lt;/span&gt;.file(&lt;span&gt;&amp;#39;gradle/publish-module.gradle&amp;#39;&lt;/span&gt;)&lt;br /&gt;}&lt;/div&gt;
&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extend Android nRF Mesh APP to support Generic Battery Server model</title><link>https://devzone.nordicsemi.com/thread/468236?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2024 14:12:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abbccf14-2f68-4fb0-9e9b-ec14cbf5b128</guid><dc:creator>Roshan Rajaratnam</dc:creator><description>&lt;p&gt;Hi, if you want to make changes to the mesh library you need to clone the project and include the mesh library instead of the dependency.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: If I understood you correctly, you have managed to add the mesh library project, you can safely remove the mesh library dependency from the build gradle. Also you can follow the implementation of a GENERIC_ON_OFF_SET message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extend Android nRF Mesh APP to support Generic Battery Server model</title><link>https://devzone.nordicsemi.com/thread/468172?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2024 09:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2b16c15-2d1f-473a-962d-329f96e9428c</guid><dc:creator>CSB</dc:creator><description>&lt;p&gt;After adding below lines under dependencies in both build.gradle (:app) and build.gradle (:mesh), I don&amp;#39;t see any errors.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;dependencies &lt;span&gt;{&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;strong&gt;&amp;nbsp; &amp;nbsp;constraints{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; implementation &amp;#39;org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.0&amp;#39;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; implementation &amp;#39;org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.0&amp;#39;&lt;br /&gt;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;And in&amp;nbsp;build.gradle (:mesh) I also added following lines under adroid configuration:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;android &lt;span&gt;{&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp;packagingOptions {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; exclude &amp;#39;androidsupportmultidexversion.txt&amp;#39;&lt;br /&gt;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;/strong&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;defaultConfig &lt;span&gt;{&lt;br /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;strong&gt;multiDexEnabled &lt;/strong&gt;&lt;span&gt;&lt;strong&gt;true&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#ff0000;"&gt;IMPORTANT:&lt;/span&gt; now I&amp;#39;m back with the original problem of not being able to modify or build &amp;quot;mesh library&amp;quot; or the app appplication is using a pre-compiled mesh library, how can I make changes to the mesh library?&lt;br /&gt;&lt;br /&gt;I think this is important knowledge for customers to make a brief description of how to extend/use the Android nRF Mesh provided models in the APP, e.g. the generic battery server - what it takes to succeed&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extend Android nRF Mesh APP to support Generic Battery Server model</title><link>https://devzone.nordicsemi.com/thread/468157?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2024 06:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04a7b8d8-4a1d-4b64-8443-8eedca63a4b8</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have asked our mobile app development team about the issue. I will get back to you when I hear back from them.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extend Android nRF Mesh APP to support Generic Battery Server model</title><link>https://devzone.nordicsemi.com/thread/468027?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 10:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edf75ec4-77da-4fb5-a483-ce825a36c10d</guid><dc:creator>CSB</dc:creator><description>&lt;p&gt;I don&amp;#39;t know if it gives any help on solving my problem, but looks like I got a failure when I try to build mesh library:&lt;/p&gt;
&lt;p&gt;build -&amp;gt; Make Module &amp;#39;Android-nRF-Mesh.mesh&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;img style="height:258px;max-width:625px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1250x516/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_02_2D00_08-113259.png" width="625" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Execution failed for task &amp;#39;:mesh:checkDebugAndroidTestDuplicateClasses&amp;#39;.&lt;br /&gt;&amp;gt; A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable&lt;br /&gt; &amp;gt; Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and kotlin-stdlib-jdk8-1.7.20 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.20)&lt;br /&gt; Duplicate class kotlin.internal.jdk7.JDK7PlatformImplementations found in modules kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and kotlin-stdlib-jdk7-1.7.20 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.20)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extend Android nRF Mesh APP to support Generic Battery Server model</title><link>https://devzone.nordicsemi.com/thread/468003?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 07:27:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdd68c2e-2153-49f6-9c51-74e37701f5ed</guid><dc:creator>CSB</dc:creator><description>&lt;p&gt;If I follows the&amp;nbsp;&lt;span&gt;GENERIC_ON_OFF_SERVER implementation this is also created as public in the SigModelParser.java located in the Mesh library, but this was of course also part of:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span class="pl-s"&gt;no.nordicsemi.android:mesh:3.3.2&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;Do I need an API to extend or use the models which are not fully implemented in the Android nRF Mesh APP?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>