mmm frameworks/base error
1.1 Error message
frameworks/base/libs/hwui/tests/unit/RenderNodeDrawableTests.cpp:463:32: error: 'onNewImageSnapshot' marked 'override' but does not override any member functions
virtual sk_sp<SkImage> onNewImageSnapshot() override {
^
frameworks/base/libs/hwui/tests/unit/RenderNodeDrawableTests.cpp:463:32: error: 'RenderNodeDrawable_projectionHwLayer_RenderThreadTest::doTheThing(renderthread::RenderThread &)::ProjectionLayer::onNewImageSnapshot' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
external/skia/src/image/SkSurface_Base.h:49:28: note: hidden overloaded virtual function 'SkSurface_Base::onNewImageSnapshot' declared here: different number of parameters (1 vs 0)
virtual sk_sp<SkImage> onNewImageSnapshot(const SkIRect* subset = nullptr) = 0;
^
frameworks/base/libs/hwui/tests/unit/RenderNodeDrawableTests.cpp:530:40: error: allocating an object of abstract class type 'ProjectionLayer'
sk_sp<SkSurface> surfaceLayer1(new ProjectionLayer(&drawCounter));
^
external/skia/src/image/SkSurface_Base.h:49:28: note: unimplemented pure virtual method 'onNewImageSnapshot' in 'ProjectionLayer'
virtual sk_sp<SkImage> onNewImageSnapshot(const SkIRect* subset = nullptr) = 0;
^
3 errors generated.
[ 41% 2049/4888] target dex2oat: out/target/product/xxxxxx_xxx/dex_bootjars/system/framework/arm/boot.art
ninja: build stopped: subcommand failed.
11:20:44 ninja failed with: exit status 1
#### failed to build some targets (08:18 (mm:ss)) ####
1.2 Solution
// use /* */ to comment out the frameworks/base/libs/hwui/Android.bp cc_test{***} will Ok, and you can compile now.
/*
cc_test {
xxx
xxx
xxx
}
*/
1.3 Test compilation
touch frameworks/base/core/res/res/values-zh-rCN/strings.xml
mmm frameworks/base
[100% 11/11] Install: out/target/product/xxxxxx/system/framework/framework-res.apk
build completed successfully (01:35 (mm:ss))
Compilation succeeded! ! !
Similar Posts:
- [Solved] Possible reasons why NPM run build cannot package NPM err! missing script: build
- Error reporting on data type and matrix dimension of eigen
- [Solved] Xcodebuild error: Command PhaseScriptExecution failed with a nonzero exit code
- AndroidStudio 3: How to Export Jar File
- Unit test reports an error nosuchbeandefinitionexception
- No tests found for given includes: [com.xxx.smm.kafka.KafkaTopicCountMonitorTest.test](filter.inc
- [Solved] Caused by: java.lang.ClassNotFoundException: Didn’t find class “…”on path: D…
- [Solved] FATAL ERROR: wasm code commit Allocation failed – process out of memory
- [Solved] Error: error c2678: binary ‘<', no left operand operator (or no acceptable conversion) that accepts type 'const a' was found
- error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MDd_DynamicDebug’ does not match value ‘MTd_StaticDebug’