cant build export template for android

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Tova

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: Add build dependencies  |  Android Studio  |  Android Developers

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.PRIORITY_LOW);
^
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.PRIORITY_LOW);
^
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.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED) {
^
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?