On the master branch @ d2b8c5e1234cdaff84bd1f60aea598d219cdac5e, building the apk
target fails:
0$ make -C src/qt apk
1...
2> Task :compileDebugJavaWithJavac FAILED
3/home/hebasto/git/gui/src/qt/android/src/org/qtproject/qt5/android/QtActivityDelegate.java:690: error: cannot find symbol
4 Display display = (Build.VERSION.SDK_INT < Build.VERSION_CODES.R)
5 ^
6 symbol: variable R
7 location: class VERSION_CODES
8/home/hebasto/git/gui/src/qt/android/src/org/qtproject/qt5/android/QtActivityDelegate.java:692: error: cannot find symbol
9 : m_activity.getDisplay();
10 ^
11 symbol: method getDisplay()
12 location: variable m_activity of type Activity
13/home/hebasto/git/gui/src/qt/android/src/org/qtproject/qt5/android/QtActivityDelegate.java:833: error: cannot find symbol
14 float refreshRate = (Build.VERSION.SDK_INT < Build.VERSION_CODES.R)
15 ^
16 symbol: variable R
17 location: class VERSION_CODES
18/home/hebasto/git/gui/src/qt/android/src/org/qtproject/qt5/android/QtActivityDelegate.java:835: error: cannot find symbol
19 : m_activity.getDisplay().getRefreshRate();
20 ^
21 symbol: method getDisplay()
22 location: variable m_activity of type Activity
23/home/hebasto/git/gui/src/qt/android/src/org/qtproject/qt5/android/QtLayout.java:95: error: cannot find symbol
24 Display display = (Build.VERSION.SDK_INT < Build.VERSION_CODES.R)
25 ^
26 symbol: variable R
27 location: class VERSION_CODES
28/home/hebasto/git/gui/src/qt/android/src/org/qtproject/qt5/android/QtLayout.java:97: error: cannot find symbol
29 : ((Activity)getContext()).getDisplay();
30 ^
31 symbol: method getDisplay()
32 location: class Activity
33/home/hebasto/git/gui/src/qt/android/src/org/qtproject/qt5/android/ExtractStyle.java:418: error: cannot find symbol
34 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q)
35 ^
36 symbol: variable Q
37 location: class VERSION_CODES
38/home/hebasto/git/gui/src/qt/android/src/org/qtproject/qt5/android/ExtractStyle.java:421: error: cannot find symbol
39 numStates = stateList.getStateCount();
40 ^
41 symbol: method getStateCount()
42 location: variable stateList of type StateListDrawable
43Note: Some input files use or override a deprecated API.
44Note: Recompile with -Xlint:deprecation for details.
458 errors
46
47FAILURE: Build failed with an exception.
48
49* What went wrong:
50Execution failed for task ':compileDebugJavaWithJavac'.
51> Compilation failed; see the compiler error output for details.
52
53* Try:
54Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
55
56* Get more help at https://help.gradle.org
57
58Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
59Use '--warning-mode all' to show the individual deprecation warnings.
60See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings
61
62BUILD FAILED in 827ms
63...
Fixing it by updating the Gradle tool’s properties.