0

I do according to documentation

module common created

res/values/public.xml

<resources>
   <public name="app_name" type="string"/>
</resources>

Also tried

 <resources>
    <public/>
 </resources>

res/values/strings.xml

<resources>
  <string name="app_name">app_name</string>
  <string name="app_name_2">app_name_2</string>
</resources>

Also tried without public.xml

res/values/strings.xml


<resources>
  <public name="app_name" type="string"/>
   
  <string name="app_name">app_name</string>
  <string name="app_name_2">app_name_2</string>
</resources>
<resources>
  <public />
  <string name="app_name">app_name</string>
  <string name="app_name_2">app_name_2</string>
</resources>

module app can use private resources

android.example.common.R.string.app_name_2
Arman
  • 25
  • 7
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Dec 24 '22 at 20:28

1 Answers1

0

I think the problem is from Android Developers side, because their video says how private resources should work, but they don't work that.

That's why I created an IssueTracker request, everyone who is affected can vote (upper right corner) so that Google pays attention to the error.

Arman
  • 25
  • 7