1、 The following error is reported in the single compilation systemui:
eworks/base/packages/SystemUI/SystemUI-tests/android_common/javac/srcjars"
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java:382: Error: Symbol not found
when(mUnlockMethodCache.isUnlockingWithFacePossible()).thenReturn(true);
^
Symbol: method isUnlockingWithFacePossible()
Location: Variable of type UnlockMethodCache mUnlockMethodCache
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/FakeHotspotController.java:22: Error: FakeHotspotController is not abstract, and does not override the abstract method isHotspotEnabling() in HotspotController
public class FakeHotspotController extends BaseLeakChecker<Callback> implements HotspotController {
^
Note: Some input files use or override deprecated APIs.
Note: For more information, please recompile with -Xlint:deprecation.
Note: Some input files use unchecked or unsafe operations.
Note: For more information, please recompile with -Xlint:unchecked.
2 errors
16:19:16 ninja failed with: exit status 1
Reason:
the error in tests may be the reason why Google has not updated it, so the whole system will not prompt an error during compilation. This error does not affect the subsequent use of
solutions:
error 1: isunlockingwithfacepossible() directly modifies the place where the method is called to false
error 2: the method is not rewritten ishhotspotenabling()
fakehotspotcontroller rewrites the ishhotspotenabling() method in this class
@Override
public boolean isHotspotEnabling() {
return false;
}
Read More:
- How to Solve Android jetpack Room Schema export Error
- How to Solve Error inflating class android.support.design.widget.FloatingActionButton
- How to Solve Android Arouter Frame Autowired Error
- Android: How to Solve libuv Compile Error
- How to Solve Android Error: gps requires ACCESS_FINE_LOCATION
- Android Studio: How to Solve APK error in mobile phone installation
- How to Solve Error: Android java.lang.IllegalStateException: Could not execute method of the activity
- How to Solve Android Studio run main() Method Error
- How to Solve Error “Could not find com.android.tools.build:gradle:3.0.1”
- How to Solve Android wechat payment Error: error_code = -1
- How to Solve Android Error: Error inflating class
- How to Solve Error: Type mismatch: cannot convert from Object to Car
- JZVideo Error: Attempt to invoke virtual method ‘android.view.Window android.app.Activity.getWindow()’ on a null object reference
- [Solved] Android Studio Start Error: Missing essential plugin: org.jetbrains.android Please reinstall Android
- How to Solve Error: You need to use a Theme.AppCompat theme (or descendant) with this activity.
- How to Solve Project Upgrade to flutter2.5.0 Error
- How to Solve Namedparameterjdbctemplate.queryforobject() Return Error
- How to Solve Spring Cloud Error context has been closed already
- Duplicate entry ‘1’ for key’PRIMARY’ (How to Solve)