+2 votes

after i run ./gradlew build i get an error

Configure project :
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

Task :compileDebugJavaWithJavac FAILED
/home/tova/Documents/godot-3.1/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java:30: error: package android.support.v4.app does not exist
import android.support.v4.app.NotificationCompat;
^
/home/tova/Documents/godot-3.1/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java:51: error: package NotificationCompat does not exist
private NotificationCompat.Builder mActiveDownloadBuilder;
^
/home/tova/Documents/godot-3.1/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java:52: error: package NotificationCompat does not exist
private NotificationCompat.Builder mBuilder;
^
/home/tova/Documents/godot-3.1/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java:53: error: package NotificationCompat does not exist
private NotificationCompat.Builder mCurrentBuilder;
^
/home/tova/Documents/godot-3.1/platform/android/java/src/org/godotengine/godot/Godot.java:62: error: package android.support.v4.content does not exist
import android.support.v4.content.ContextCompat;
^
/home/tova/Documents/godot-3.1/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java:207: error: package NotificationCompat does not exist
mActiveDownloadBuilder = new NotificationCompat.Builder(ctx);
^
/home/tova/Documents/godot-3.1/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java:208: error: package NotificationCompat does not exist
mBuilder = new NotificationCompat.Builder(ctx);
^
/home/tova/Documents/godot-3.1/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java:212: error: cannot find symbol
mActiveDownloadBuilder.setPriority(NotificationCompat.PRIORITYLOW);
^
symbol: variable NotificationCompat
location: class DownloadNotification
/home/tova/Documents/godot-3.1/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java:213: error: cannot find symbol
mActiveDownloadBuilder.setCategory(NotificationCompat.CATEGORY
PROGRESS);
^
symbol: variable NotificationCompat
location: class DownloadNotification
/home/tova/Documents/godot-3.1/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java:215: error: cannot find symbol
mBuilder.setPriority(NotificationCompat.PRIORITYLOW);
^
symbol: variable NotificationCompat
location: class DownloadNotification
/home/tova/Documents/godot-3.1/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java:216: error: cannot find symbol
mBuilder.setCategory(NotificationCompat.CATEGORY
PROGRESS);
^
symbol: variable NotificationCompat
location: class DownloadNotification
/home/tova/Documents/godot-3.1/platform/android/java/src/org/godotengine/godot/Godot.java:954: error: cannot find symbol
if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECORDAUDIO) != PackageManager.PERMISSIONGRANTED) {
^
symbol: variable ContextCompat
location: class Godot
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
12 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

  • Try:
    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.

  • Get more help at https://help.gradle.org

BUILD FAILED in 4s
16 actionable tasks: 1 executed, 15 up-to-date

i'm not sure what's causing it, I checked my environment variables and everything seems alright
anyone know the solution?

in Engine by (157 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories