mapsplugin / cordova-plugin-googlemaps

Google Maps plugin for Cordova
Apache License 2.0
1.66k stars 916 forks source link

plugin/google/maps/PluginMap.java:86: error: cannot find symbol #2107

Closed kodeine closed 6 years ago

kodeine commented 6 years ago

I'm submitting a ... (check one with "x")

cordova information:

cc.fovea.cordova.purchase 7.1.0 "Purchase"
com.googlemaps.ios 2.6.0 "Google Maps SDK for iOS"
cordova-android-play-services-gradle-release 1.2.0 "cordova-android-play-services-gradle-release"
cordova-clipboard 1.1.1 "Clipboard"
cordova-launch-review 3.1.0 "Launch Review"
cordova-plugin-add-swift-support 1.7.1 "AddSwiftSupport"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-appminimize 1.0 "AppMinimize"
cordova-plugin-autostart 2.0.1 "Autostart"
cordova-plugin-camera 4.0.3-dev "Camera"
cordova-plugin-contacts-phonenumbers 0.0.9 "Contacts Phone Numbers"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-facebook4 1.9.1 "Facebook Connect"
cordova-plugin-firebase-analytics 0.10.2 "FirebaseAnalyticsPlugin"
cordova-plugin-geolocation 4.0.2-dev "Geolocation"
cordova-plugin-googlemaps 2.2.6-beta-20180222-2323 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 1.7.2 "InAppBrowser"
cordova-plugin-ionic 1.1.9 "IonicCordova"
cordova-plugin-network-information 1.3.4 "Network Information"
cordova-plugin-sim 1.3.3 "SIM"
cordova-plugin-splashscreen 4.1.0 "Splashscreen"
cordova-plugin-statusbar 2.4.2-dev "StatusBar"
cordova-plugin-stripe 1.5.3 "cordova-plugin-stripe"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-wkwebview-engine 1.1.6 "Cordova WKWebView Engine"
cordova-plugin-x-socialsharing 5.2.1 "SocialSharing"
cordova.plugins.diagnostic 3.9.2 "Diagnostic"
es6-promise-plugin 4.1.0 "Promise"
ionic-plugin-deeplinks 1.0.15 "Ionic Deeplink Plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
onesignal-cordova-plugin 2.3.1 "OneSignal Push Notifications"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

Current behavior:

incrementalReleaseJavaCompilationSafeguard
:compileReleaseJavaWithJavac
:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/user/project/platforms/android/src/plugin/google/maps/PluginMap.java:86: error: cannot find symbol
    GoogleMap.OnInfoWindowLongClickListener, GoogleMap.OnInfoWindowCloseListener, GoogleMap.OnMyLocationClickListener, GoogleMap.OnPoiClickListener {
                                                                                           ^
  symbol:   class OnMyLocationClickListener
  location: class GoogleMap
/Users/user/project/platforms/android/src/plugin/google/maps/PluginMap.java:337: error: cannot find symbol
              map.setOnMyLocationClickListener(PluginMap.this);
                 ^
  symbol:   method setOnMyLocationClickListener(PluginMap)
  location: variable map of type GoogleMap
/Users/user/project/platforms/android/src/plugin/google/maps/PluginMap.java:768: error: cannot find symbol
                  map.setOnMyLocationClickListener(null);
                     ^
  symbol:   method setOnMyLocationClickListener(<null>)
  location: variable map of type GoogleMap
/Users/user/project/platforms/android/src/plugin/google/maps/PluginMap.java:2500: error: method does not override or implement a method from a supertype
  @Override
  ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
> 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: 11.748 secs
Error: /Users/user/project/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/user/project/platforms/android/src/plugin/google/maps/PluginMap.java:86: error: cannot find symbol
    GoogleMap.OnInfoWindowLongClickListener, GoogleMap.OnInfoWindowCloseListener, GoogleMap.OnMyLocationClickListener, GoogleMap.OnPoiClickListener {
                                                                                           ^
  symbol:   class OnMyLocationClickListener
  location: class GoogleMap
/Users/user/project/platforms/android/src/plugin/google/maps/PluginMap.java:337: error: cannot find symbol
              map.setOnMyLocationClickListener(PluginMap.this);
                 ^
  symbol:   method setOnMyLocationClickListener(PluginMap)
  location: variable map of type GoogleMap
/Users/user/project/platforms/android/src/plugin/google/maps/PluginMap.java:768: error: cannot find symbol
                  map.setOnMyLocationClickListener(null);
                     ^
  symbol:   method setOnMyLocationClickListener(<null>)
  location: variable map of type GoogleMap
/Users/user/project/platforms/android/src/plugin/google/maps/PluginMap.java:2500: error: method does not override or implement a method from a supertype
  @Override
  ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

global packages:

cordova (Cordova CLI) : 7.1.0 

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 6.3.0
Ionic Framework    : ionic-angular 3.9.2

System:

Node  : v9.2.1
npm   : 5.6.0 
OS    : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b 
wf9a5m75 commented 6 years ago

Your google play services sdk is too old

wf9a5m75 commented 6 years ago

Remove this cordova-android-play-services-gradle-release

wf9a5m75 commented 6 years ago

https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2050#issuecomment-363291298

kodeine commented 6 years ago

@wf9a5m75 cordova-android-play-services-gradle-release makes sure all the plugins are using 11.8.+

kodeine commented 6 years ago

image

wf9a5m75 commented 6 years ago

Please share your project files on GitHub

wf9a5m75 commented 6 years ago

ping

thisisjeevanraj commented 6 years ago

Hi I too have the same error. This is my error..

:compileDebugRenderscript :generateDebugBuildConfig :generateDebugResValues :generateDebugResources :mergeDebugResources :processDebugManifest :processDebugResources :generateDebugSources :incrementalDebugJavaCompilationSafeguard :compileDebugJavaWithJavac :compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). /src/plugin/google/maps/PluginMap.java:86: error: cannot find symbol GoogleMap.OnInfoWindowLongClickListener, GoogleMap.OnInfoWindowCloseListener, GoogleMap.OnMyLocationClickListener, GoogleMap.OnPoiClickListener { ^ symbol: class OnMyLocationClickListener location: class GoogleMap /src/plugin/google/maps/PluginMap.java:337: error: cannot find symbol map.setOnMyLocationClickListener(PluginMap.this); ^ symbol: method setOnMyLocationClickListener(PluginMap) location: variable map of type GoogleMap /src/plugin/google/maps/PluginMap.java:768: error: cannot find symbol map.setOnMyLocationClickListener(null); ^ symbol: method setOnMyLocationClickListener() location: variable map of type GoogleMap /src/plugin/google/maps/PluginMap.java:2500: error: method does not override or implement a method from a supertype @Override ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 4 errors :compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 2.122 secs Error: /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. /src/plugin/google/maps/PluginMap.java:86: error: cannot find symbol GoogleMap.OnInfoWindowLongClickListener, GoogleMap.OnInfoWindowCloseListener, GoogleMap.OnMyLocationClickListener, GoogleMap.OnPoiClickListener { ^ symbol: class OnMyLocationClickListener location: class GoogleMap /src/plugin/google/maps/PluginMap.java:337: error: cannot find symbol map.setOnMyLocationClickListener(PluginMap.this); ^ symbol: method setOnMyLocationClickListener(PluginMap) location: variable map of type GoogleMap /src/plugin/google/maps/PluginMap.java:768: error: cannot find symbol map.setOnMyLocationClickListener(null); ^ symbol: method setOnMyLocationClickListener() location: variable map of type GoogleMap /src/plugin/google/maps/PluginMap.java:2500: error: method does not override or implement a method from a supertype @Override ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 4 errors

FAILURE: Build failed with an exception.

battika commented 6 years ago

What other cordova plugins are you using? When I had the same problem it was caused by the onesignal plugin forcing an older version of Google Play Services via a gradle build script.

See here: https://github.com/OneSignal/OneSignal-Cordova-SDK/issues/297

I am not saying you have the same problem you might not be using OneSignal at all but I would look into you other Cordova plugins and gradle scripts.

kodeine commented 6 years ago

@battika cordova-android-play-services-gradle-release makes sure all the plugins are using 11.8.+

kodeine commented 6 years ago

@wf9a5m75 its a huge project, i cannot upload the whole, ill try to minimize it and then upload, btw how can i use multiple_maps and a version number on cordova add? Maybe i can try the older version in that branch?

wf9a5m75 commented 6 years ago
$ cordova plugin add cordova-android-play-services-gradle-release  --variable PLAY_SERVICES_VERSION=11.8.0
kodeine commented 6 years ago

@wf9a5m75 i already told you that i added cordova-android-play-services-gradle-release with playstore version 11.8.0. I still get the above error.

wf9a5m75 commented 6 years ago

But the error log indicates your gralde does not use 11.8.0

kodeine commented 6 years ago

@wf9a5m75 i just tried again, removed the gradle-release plugin and installed it again with playservice 11.8.+ but as soon i add googlemaps plugin i get that error, once i remove its all fine.

wf9a5m75 commented 6 years ago

It means other plugins that use Google Play Services SDK are old. But this plugin requires the latest version11.8.0.

If you can't resolve by yourself, please share your project files (all files) on github. Otherwise, no further support. Please resolve the issue by yourself. It's your environment problem.

maleriepace commented 6 years ago

I'm actually currently debugging the same issue right now too

wf9a5m75 commented 6 years ago

ping

alheranx commented 6 years ago

As @wf9a5m75 and @battika said i see the problem in gradle too... is an incompatibility with other plugins. Iam the problem with oneSignal, and before start to debug, I prefer change to Firebase Cloud Messaging, but doesn't work. The problem is compatibility not googleMaps plugin. I dont know If is Cordova use old gradle version for any notification plugin.

wf9a5m75 commented 6 years ago

This plugin requires 11.8.0, but other plugins specify more older version.

freddiandrew commented 6 years ago

@battika and @alheranx i also use onesignal-cordova and still no issue when i force to use this: cordova plugin add cordova-android-play-services-gradle-release --variable PLAY_SERVICES_VERSION=11.8.0

battika commented 6 years ago

@freddiandrew nice workaround, thanks. However, I hope OneSignal will bump their Play Services version soon.

alheranx commented 6 years ago

Still not work, @battika ¿what versión of gradle do you use?, I think in my case I have a newest versión of gradle wich no support the way the plugin it configurates ... I let here my terminal error, tomorrow I sit to computer and maybe you guys have some ideas.

Running app-scripts build: --platform android --target cordova [06:52:52] build dev started ... [06:52:52] clean started ... [06:52:52] clean finished in 4 ms [06:52:52] copy started ... [06:52:53] deeplinks started ... [06:52:53] deeplinks finished in 68 ms [06:52:53] transpile started ... [06:52:58] transpile finished in 5.32 s [06:52:58] preprocess started ... [06:52:58] preprocess finished in less than 1 ms [06:52:58] webpack started ... [06:52:59] copy finished in 6.09 s [06:53:07] webpack finished in 9.28 s [06:53:07] sass started ... Without from option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined to prevent this warning. [06:53:09] sass finished in 1.26 s [06:53:09] postprocess started ... [06:53:09] postprocess finished in 28 ms [06:53:09] lint started ... [06:53:09] build dev finished in 16.43 s

cordova build android Android Studio project detected

cordova-android-play-services-gradle-release PLAY_SERVICES_VERSION: 11.8.0 cordova-android-play-services-gradle-release : WROTE /Users/alberto/ionic/nezapp2/platforms/android/build.gradle > 11.8.0 ANDROID_HOME=/Users/alberto/Library/android/sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home studio Subproject Path: CordovaLib Subproject Path: app publishNonDefault is deprecated and has no effect anymore. All variants are now published. Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead. +----------------------------------------------------------------- | cordova-android-play-services-gradle-release: 11.+ +----------------------------------------------------------------- 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_6345xq94s86i4s79rdc6fbaql.run(/Users/alberto/ionic/nezapp2/platforms/android/app/build.gradle:147) :CordovaLib:preBuild UP-TO-DATE :CordovaLib:preDebugBuild UP-TO-DATE :CordovaLib:compileDebugAidl UP-TO-DATE :CordovaLib:compileDebugRenderscript UP-TO-DATE :CordovaLib:checkDebugManifest UP-TO-DATE :CordovaLib:generateDebugBuildConfig UP-TO-DATE :CordovaLib:prepareLintJar UP-TO-DATE :CordovaLib:generateDebugResValues UP-TO-DATE :CordovaLib:generateDebugResources UP-TO-DATE :CordovaLib:packageDebugResources UP-TO-DATE :CordovaLib:platformAttrExtractor UP-TO-DATE :CordovaLib:processDebugManifest UP-TO-DATE :CordovaLib:processDebugResources UP-TO-DATE :CordovaLib:generateDebugSources UP-TO-DATE :CordovaLib:javaPreCompileDebug UP-TO-DATE :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE :CordovaLib:processDebugJavaRes NO-SOURCE :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:compileDebugAidl UP-TO-DATE :CordovaLib:packageDebugRenderscript NO-SOURCE :app:compileDebugRenderscript UP-TO-DATE :app:checkDebugManifest UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:prepareLintJar UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources UP-TO-DATE :app:createDebugCompatibleScreenManifests UP-TO-DATE :app:processDebugManifest

UP-TO-DATE :app:splitsDiscoveryTaskDebug UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :app:javaPreCompileDebug

UP-TO-DATE :app:compileDebugJavaWithJavac

UP-TO-DATE :app:compileDebugNdk NO-SOURCE :app:compileDebugSources UP-TO-DATE :CordovaLib:mergeDebugShaders UP-TO-DATE :CordovaLib:compileDebugShaders UP-TO-DATE :CordovaLib:generateDebugAssets UP-TO-DATE :CordovaLib:mergeDebugAssets UP-TO-DATE :app:mergeDebugShaders UP-TO-DATE :app:compileDebugShaders UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets UP-TO-DATE :app:extractTryWithResourcesSupportJarDebug UP-TO-DATE :app:transformClassesWithStackFramesFixerForDebug UP-TO-DATE :app:transformClassesWithDesugarForDebug Exception in thread "main" java.lang.IllegalArgumentException at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108) at com.google.devtools.build.android.desugar.DefaultMethodClassFixer$DefaultMethodFinder.visit(DefaultMethodClassFixer.java:471) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.defaultMethodsDefined(DefaultMethodClassFixer.java:319) at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.visitEnd(DefaultMethodClassFixer.java:88) at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source) at com.google.devtools.build.android.desugar.InterfaceDesugaring.visitEnd(InterfaceDesugaring.java:85) at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source) at com.google.devtools.build.android.desugar.LambdaDesugaring.visitEnd(LambdaDesugaring.java:150) at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source) at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:401) at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:326) at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:280) at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:584)

Exception in thread "main" java.lang.IllegalArgumentException at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108) at com.google.devtools.build.android.desugar.DefaultMethodClassFixer$DefaultMethodFinder.visit(DefaultMethodClassFixer.java:471) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source)

at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.defaultMethodsDefined(DefaultMethodClassFixer.java:319)
at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.visitEnd(DefaultMethodClassFixer.java:88)
at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
at com.google.devtools.build.android.desugar.InterfaceDesugaring.visitEnd(InterfaceDesugaring.java:85)
at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
at com.google.devtools.build.android.desugar.LambdaDesugaring.visitEnd(LambdaDesugaring.java:150)
at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:401)
at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:326)
at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:280)
at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:584)

FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 7s 36 actionable tasks: 1 executed, 35 up-to-date [06:53:21] tslint: src/app/app.component.ts, line: 43 'hoja' is declared but never used.

  L43:   let hoja = JSON.stringify(jsonData.notification.payload);
  L44:   // alert(hoja);

[06:53:21] tslint: src/pages/agenda-contactos/agenda-contactos.module.ts, line: 6 'FirebaseApp' is declared but never used.

   L6:  import { AngularFireModule, FirebaseApp } from 'angularfire2';
   L7:  import { AngularFireDatabaseModule } from 'angularfire2/database';

[06:53:21] tslint: src/pages/blog/blog.ts, line: 20 Property 'miFirebase' is declared but never used.

  L20:  vCtrl: NavController, public navParams: NavParams, private miFirebase: AngularFireDatabase, public loadingCt
  L21:        this.loader = this.loadingCtrl.create({

[06:53:21] tslint: src/pages/blog/blog.ts, line: 2 'InfiniteScroll' is declared but never used.

   L1:  import { Component } from '@angular/core';
   L2:  cPage, NavController, NavParams, LoadingController, Loading, InfiniteScroll, InfiniteScrollContent } from 'i
   L3:  import { AngularFireDatabase } from 'angularfire2/database';

[06:53:21] tslint: src/pages/blog/blog.ts, line: 2 'InfiniteScrollContent' is declared but never used.

   L1:  import { Component } from '@angular/core';
   L2:  ntroller, NavParams, LoadingController, Loading, InfiniteScroll, InfiniteScrollContent } from 'ionic-angular
   L3:  import { AngularFireDatabase } from 'angularfire2/database';

[06:53:21] tslint: src/pages/blog/blog.module.ts, line: 5 'FirebaseApp' is declared but never used.

   L5:  import { AngularFireModule, FirebaseApp } from 'angularfire2';
   L6:  import { AngularFireDatabaseModule } from 'angularfire2/database';

[06:53:21] tslint: src/pages/chat/chat.ts, line: 50 Property 'miPlataforma' is declared but never used.

  L49:  constructor(
  L50:      private miPlataforma: Platform, 
  L51:      public loadingCtrl: LoadingController, 

[06:53:21] tslint: src/pages/chat/chat.ts, line: 2 'Nav' is declared but never used.

   L1:  import { ViewChild, Component } from '@angular/core';
   L2:  import { Nav, IonicPage, Platform, Content, NavController, NavParams, LoadingController } from 'ionic-angula
   L3:  import { AngularFireDatabase } from 'angularfire2/database';

[06:53:21] tslint: src/pages/chat/chat.ts, line: 7 All imports are unused.

   L6:  import { Camera, CameraOptions } from '@ionic-native/camera';
   L7:  import { base64 } from '@firebase/util/dist/esm/src/crypt';
   L8:  import { AngularFireStorage } from 'angularfire2/storage';

[06:53:21] tslint: src/pages/chat/chat.module.ts, line: 6 'FirebaseApp' is declared but never used.

   L6:  import { AngularFireModule, FirebaseApp } from 'angularfire2';
   L7:  import { AngularFireDatabaseModule } from 'angularfire2/database';

[06:53:21] tslint: src/pages/chats/chats.ts, line: 5 All imports are unused.

   L4:  import { Observable } from 'rxjs/Observable';
   L5:  import { Title } from '@angular/platform-browser';

[06:53:21] tslint: src/pages/chats/chats.module.ts, line: 5 'FirebaseApp' is declared but never used.

   L5:  import { AngularFireModule, FirebaseApp } from 'angularfire2';
   L6:  import { AngularFireDatabaseModule } from 'angularfire2/database';

[06:53:21] tslint: src/pages/notificaciones/notificaciones.module.ts, line: 5 'FirebaseApp' is declared but never used.

   L5:  import { AngularFireModule, FirebaseApp } from 'angularfire2';
   L6:  import { AngularFireDatabaseModule } from 'angularfire2/database';

[06:53:21] lint finished in 12.57 s (node:5220) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /Users/alberto/ionic/nezapp2/platforms/android/gradlew: Command failed with exit code 1 Error output: Exception in thread "main" java.lang.IllegalArgumentException at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108) at com.google.devtools.build.android.desugar.DefaultMethodClassFixer$DefaultMethodFinder.visit(DefaultMethodClassFixer.java:471) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.defaultMethodsDefined(DefaultMethodClassFixer.java:319) at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.visitEnd(DefaultMethodClassFixer.java:88) at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source) at com.google.devtools.build.android.desugar.InterfaceDesugaring.visitEnd(InterfaceDesugaring.java:85) at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source) at com.google.devtools.build.android.desugar.LambdaDesugaring.visitEnd(LambdaDesugaring.java:150) at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source) at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:401) at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:326) at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:280) at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:584)

Exception in thread "main" java.lang.IllegalArgumentException at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108) at com.google.devtools.build.android.desugar.DefaultMethodClassFixer$DefaultMethodFinder.visit(DefaultMethodClassFixer.java:471) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.defaultMethodsDefined(DefaultMethodClassFixer.java:319) at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.visitEnd(DefaultMethodClassFixer.java:88) at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source) at com.google.devtools.build.android.desugar.InterfaceDesugaring.visitEnd(InterfaceDesugaring.java:85) at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source) at com.google.devtools.build.android.desugar.LambdaDesugaring.visitEnd(LambdaDesugaring.java:150) at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source) at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:401) at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:326) at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:280) at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:584)

FAILURE: Build failed with an exception.

BUILD FAILED in 7s (node:5220) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

alheranx commented 6 years ago

Hi, again me.... it works!! the thins I do was:

-> Install grade 2.14.1 -> Modify this line: defaultBuildToolsVersion="26.0.1" -> at last I run cordova clean android

i do in that order, I dont know if a simple Cordova clean would make the same effect, but for today I dont wanna investigate it.

wf9a5m75 commented 6 years ago

Umm, it seems defaultBuildToolsVersion is the point.

mohamedsharaf commented 6 years ago

this fixed same error for me in config.xml

`

    <variable name="API_KEY_FOR_IOS" value="ssss" />
    <variable name="PLAY_SERVICES_VERSION" value="15.0.0" />
    <variable name="ANDROID_SUPPORT_V4_VERSION" value="27.1.1" />
    <variable name="LOCATION_WHEN_IN_USE_DESCRIPTION" value="Use and tracking Your Location " />
    <variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="Use and tracking Your Location" />
</plugin>`