Help! I am trying to export a construct 2 project with Firebase


#1
  • Basic description of the problem:
    So i am trying to export a contruct 2 project using rex plugins for the Google Firebase.
    But when i try to export with the firebase plugin from cocoon it just doest work!
    It sends me this error:

COMPILER ERROR:

/workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:3: error: cannot find symbol
import android.app.NotificationChannel;
^
symbol: class NotificationChannel
location: package android.app
/workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:187: error: cannot find symbol
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
^
symbol: variable O
location: class VERSION_CODES
/workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:188: error: cannot find symbol
NotificationChannel channel = new NotificationChannel(channelId, channelName, NotificationManager.IMPORTANCE_HIGH);
^
symbol: class NotificationChannel
location: class FirebasePluginMessagingService
/workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:188: error: cannot find symbol
NotificationChannel channel = new NotificationChannel(channelId, channelName, NotificationManager.IMPORTANCE_HIGH);
^
symbol: class NotificationChannel
location: class FirebasePluginMessagingService
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileArmv7DebugJavaWithJavac’.

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.

CORDOVA LOG:

pace/plugins/cocoon-plugin-android-architecture/LICENSE
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/README.md
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/plugin.xml

cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/LICENSE

cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/LICENSE
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/README.md

skipping existing file: architecture.gradle
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/LICENSE
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/README.md
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/plugin.xml

Preparing Firebase on Android
e[36m[2018-07-27T17:30:23.869] [DEBUG] AndroidBuilder - e[39m[build]
Warning: File /.android/repositories.cfg could not be loaded.
yes: standard output: Broken pipe
yes: write error
e[36m[2018-07-27T17:30:25.221] [DEBUG] AndroidBuilder - e[39m[build] call cordova
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/LICENSE

cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/LICENSE
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/README.md

skipping existing file: architecture.gradle
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/LICENSE
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/README.md
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/plugin.xml

Preparing Firebase on Android
ANDROID_HOME=/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Subproject Path: CordovaLib
Starting a Gradle Daemon, 13 stopped Daemons could not be reused, use --status for details
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_8oymfegldzr6qjmyjdlr37ymk.run(/workspace/platforms/android/build.gradle:139)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
:preBuild UP-TO-DATE
:preArmv7DebugBuild UP-TO-DATE
:checkArmv7DebugManifest
:preArmv7ReleaseBuild UP-TO-DATE
:preX86DebugBuild UP-TO-DATE
:preX86ReleaseBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders
:CordovaLib:compileDebugShaders
:CordovaLib:generateDebugAssets
:CordovaLib:mergeDebugAssets
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:generateDebugBuildConfig
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:incrementalDebugJavaCompilationSafeguard
:CordovaLib:compileDebugJavaWithJavac
:CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
:CordovaLib:bundleDebug
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseShaders
:CordovaLib:compileReleaseShaders
:CordovaLib:generateReleaseAssets
:CordovaLib:mergeReleaseAssets
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:incrementalReleaseJavaCompilationSafeguard
:CordovaLib:compileReleaseJavaWithJavac
:CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
:CordovaLib:mergeReleaseJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
:CordovaLib:bundleRelease
:prepareAndroidArchLifecycleRuntime100Library
:prepareComAndroidSupportSupportCompat2610Library
:prepareComAndroidSupportSupportCoreUi2610Library
:prepareComAndroidSupportSupportCoreUtils2610Library
:prepareComAndroidSupportSupportFragment2610Library
:prepareComAndroidSupportSupportMediaCompat2610Library
:prepareComAndroidSupportSupportV42610Library
:prepareComGoogleAndroidGmsPlayServicesAds902Library
:prepareComGoogleAndroidGmsPlayServicesAdsIdentifier1501Library
:prepareComGoogleAndroidGmsPlayServicesAdsLite902Library
:prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl1601Library
:prepareComGoogleAndroidGmsPlayServicesBase1501Library
:prepareComGoogleAndroidGmsPlayServicesBasement1501Library
:prepareComGoogleAndroidGmsPlayServicesClearcut1501Library
:prepareComGoogleAndroidGmsPlayServicesFlags1501Library
:prepareComGoogleAndroidGmsPlayServicesMeasurementBase1600Library
:prepareComGoogleAndroidGmsPlayServicesPhenotype1501Library
:prepareComGoogleAndroidGmsPlayServicesStats1501Library
:prepareComGoogleAndroidGmsPlayServicesTagmanager1601Library
:prepareComGoogleAndroidGmsPlayServicesTagmanagerApi1601Library
:prepareComGoogleAndroidGmsPlayServicesTasks1501Library
:prepareComGoogleFirebaseFirebaseAbt1600Library
:prepareComGoogleFirebaseFirebaseAnalytics1601Library
:prepareComGoogleFirebaseFirebaseAnalyticsImpl1611Library
:prepareComGoogleFirebaseFirebaseAuth1602Library
:prepareComGoogleFirebaseFirebaseAuthInterop1600Library
:prepareComGoogleFirebaseFirebaseCommon1600Library
:prepareComGoogleFirebaseFirebaseConfig1600Library
:prepareComGoogleFirebaseFirebaseCore1601Library
:prepareComGoogleFirebaseFirebaseCrash1601Library
:prepareComGoogleFirebaseFirebaseIid1620Library
:prepareComGoogleFirebaseFirebaseIidInterop1600Library
:prepareComGoogleFirebaseFirebaseMeasurementConnector1600Library
:prepareComGoogleFirebaseFirebaseMeasurementConnectorImpl1601Library
:prepareComGoogleFirebaseFirebaseMessaging1710Library
:prepareComGoogleFirebaseFirebasePerf1600Library
:prepareMeLeolinShortcutBadger114Library
:prepareOrgApacheCordovaCordovaLib623DebugLibrary
:prepareArmv7DebugDependencies
:compileArmv7DebugAidl
:compileArmv7DebugRenderscript
:generateArmv7DebugBuildConfig
:generateArmv7DebugResValues
:generateArmv7DebugResources
:mergeArmv7DebugResources
:processArmv7DebugManifest
:processArmv7DebugResources
:generateArmv7DebugSources
:incrementalArmv7DebugJavaCompilationSafeguard
:compileArmv7DebugJavaWithJavac
:compileArmv7DebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:3: error: cannot find symbol
import android.app.NotificationChannel;
^
symbol: class NotificationChannel
location: package android.app
/workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:187: error: cannot find symbol
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
^
symbol: variable O
location: class VERSION_CODES
/workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:188: error: cannot find symbol
NotificationChannel channel = new NotificationChannel(channelId, channelName, NotificationManager.IMPORTANCE_HIGH);
^
symbol: class NotificationChannel
location: class FirebasePluginMessagingService
/workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:188: error: cannot find symbol
NotificationChannel channel = new NotificationChannel(channelId, channelName, NotificationManager.IMPORTANCE_HIGH);
^
symbol: class NotificationChannel
location: class FirebasePluginMessagingService
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors
:compileArmv7DebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileArmv7DebugJavaWithJavac’.

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.

BUILD FAILED

Total time: 30.466 secs


#2

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.