A developer on my team figured it out, it fixed build errors with another module we were trying to build as well (com.android.permission)
`export UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true # don't rely on prebuilts` Ref: https://gitlab.com/CalyxOS/calyxos/-/issues/298#note_1366949441 On Thursday, April 13, 2023 at 8:13:00 PM UTC+5:30 cdesai wrote: > Copy-paste error above. > > I tried to build `aml_mpr_331512020` which says "aml_mpr_331512020 > (9567825,com.google.android.mediaprovider)". I said permission above, that > was wrong. > > Just double checked, that's what I have checked out in my tree. > > On Thursday, April 6, 2023 at 1:00:51 AM UTC+5:30 cdesai wrote: > >> Hello, >> >> I'm trying to build the latest tags released for mainline modules. >> >> I don't see much documentation for those publicly, if there's something >> that I missed, would anyone mind linking to it? >> >> I chose the tag `aml_per_331512020`, which has the decription >> "aml_per_331512020 (9532533,com.google.android.permission)", which I >> assumed to mean to refer to AOSP module "com.android.permission" >> >> I inited a tree with that, then: >> ``` >> export TARGET_BUILD_APPS=com.android.mediaprovider >> packages/modules/common/build/build_unbundled_mainline_module.sh >> --product module_arm64 --dist_dir out/mainline_modules >> ``` >> >> This leads to an error: >> ``` >> packages/providers/MediaProvider/src/com/android/providers/media/util/PermissionUtils.java:29: >> >> error: cannot find symbol >> import static android.Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED; >> ``` >> >> Reverting >> https://android.googlesource.com/platform/packages/providers/MediaProvider/+/88b1f1fbed47cc6db7c795134a2a980067332ce5 >> >> makes it build. >> >> Are these the correct steps? Is the build failure expected? >> > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/997e9392-0168-4521-bfb3-bdf7007fb878n%40googlegroups.com.
