hu song
unread,Jul 29, 2021, 4:43:32 AM7/29/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-webview-dev, guhua...@gmail.com, to...@chromium.org, android-webview-dev
HI guhua
You said "I also used gn and autoninja to build all related stuff into a single aar, such as shared library(libstandalonelibwebviewchromium.so) ,and res,assets." Do you use "dist_aar" gn command to generate aar file?
Currently, I use "dist_aar" command to make a webview aar file and have some problems. 1."dist_aar" can't support assets (Integrator app can include webview aar's assets to solve this issue ) 2.aar file should have R.txt file to handle android resources. Follow chromium docs "A target-specific R.java is generated for each android_library() target that sets resources_package. Resource IDs are not known at this phase, so all values are set as placeholders." android_library just generates dummy resource ids, real resources ids are generated by apk build process. "dist_aar" command just merge all R.txt, not get correct ids. How to generate R.txt file which have correct resource IDs.Do you meet these problems, and how to solve them. Thanks!