Commit 45b6190
committed
🐛 Fixes service_only and webview symbol errors, closes kivy#2228
The error was:
```
Listing '/home/user/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/webview_includes'...
[INFO]: Detected highest available build tools version to be 28.0.2
[DEBUG]: -> running gradlew assembleDebug
[DEBUG]: Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use --status for details
[DEBUG]:
[DEBUG]: > Task :compileDebugJavaWithJavac FAILED
[DEBUG]: /home/user/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/src/main/java/org/kivy/android/PythonActivity.java:245: error: cannot find symbol
[DEBUG]: public boolean onKeyDown(int keyCode, KeyEvent event) {
[DEBUG]: ^
[DEBUG]: symbol: class KeyEvent
[DEBUG]: location: class PythonActivity
[DEBUG]: /home/user/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/src/main/java/org/kivy/android/PythonActivity.java:130: error: package AlertDialog does not exist
[DEBUG]: AlertDialog.Builder dlgAlert = new AlertDialog.Builder(PythonActivity.mActivity);
[DEBUG]: ^
[DEBUG]: /home/user/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/src/main/java/org/kivy/android/PythonActivity.java:130: error: package AlertDialog does not exist
[DEBUG]: AlertDialog.Builder dlgAlert = new AlertDialog.Builder(PythonActivity.mActivity);
[DEBUG]: ^
[DEBUG]: /home/user/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/src/main/java/org/kivy/android/PythonActivity.java:137: error: package DialogInterface does not exist
[DEBUG]: new DialogInterface.OnClickListener() {
[DEBUG]: ^
[DEBUG]: /home/user/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/src/main/java/org/kivy/android/PythonActivity.java:247: error: cannot find symbol
[DEBUG]: if ((keyCode == KeyEvent.KEYCODE_BACK) && mWebView.canGoBack()) {
[DEBUG]: ^
[DEBUG]: symbol: variable KeyEvent
[DEBUG]: location: class PythonActivity
[DEBUG]: Note: Some input files use or override a deprecated API.
[DEBUG]: Note: Recompile with -Xlint:deprecation for details.
[DEBUG]: 5 errors
[DEBUG]:
[DEBUG]:
[DEBUG]: FAILURE: Build failed with an exception.
[DEBUG]:
[DEBUG]: * What went wrong:
[DEBUG]: Execution failed for task ':compileDebugJavaWithJavac'.
[DEBUG]: > Compilation failed; see the compiler error output for details.
[DEBUG]:
[DEBUG]: * Try:
[DEBUG]: Run 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.
[DEBUG]:
[DEBUG]: * Get more help at https://help.gradle.org
[DEBUG]:
[DEBUG]: BUILD FAILED in 29s
[DEBUG]: 15 actionable tasks: 3 executed, 12 up-to-date
```1 parent 9c601cf commit 45b6190
3 files changed
Lines changed: 6 additions & 3 deletions
File tree
- pythonforandroid/bootstraps
- sdl2/build/src/main/java/org/kivy/android
- service_only/build/src/main/java/org/kivy/android
- webview/build/src/main/java/org/kivy/android
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
30 | | - | |
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
0 commit comments