AAOS build has no WebView

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

AAOS build has no WebView

869 次查看
Sterling
Contributor I

Hello,

We're building Android Automotive OS 13.0.0_2.3.0 on i.MX 8QuadXPlus MEK boards, following the instructions in the Android Automotive User's Guide at https://www.nxp.com/design/software/embedded-software/i-mx-software/android-automotive-os-for-i-mx-a....

The system generally builds OK, but the resulting image does not include a WebView component. Attempting to run any Android app which requires WebView yields the following error in logcat:

 

android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed

 

The source set includes an external/android_build directory, including prebuilt APKs, but they're not getting installed; running adb shell "dumpsys package com.android.webview" against the built system returns Unable to find package: com.android.webview.

If I try to "force" the APK's inclusion in the build by adding an Android.mk file to that dir, the build fails with a message of 

 

build/make/core/base_rules.mk:338: error: external/chromium-webview: MODULE.TARGET.APPS.webview already defined by external/chromium-webview.

 

Which basically sounds as though WebView is already included in the build. But it’s not included in the output image. The same happens if I try to include the APK manually in prebuilts, or elsewhere in the build tree. 

And so, my question: what do I need to do to include WebView in my AAOS build?

Thanks,

Sterling

标记 (1)
0 项奖励
回复
0 回复数