Closed kodeine closed 6 years ago
Your google play services sdk is too old
Remove this cordova-android-play-services-gradle-release
@wf9a5m75 cordova-android-play-services-gradle-release
makes sure all the plugins are using 11.8.+
Please share your project files on GitHub
ping
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(
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.
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(
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. at ChildProcess.whenDone (/cordova/node_modules/cordova-common/src/superspawn.js:169:23) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:191:7) at maybeClose (internal/child_process.js:877:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
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.
@battika cordova-android-play-services-gradle-release
makes sure all the plugins are using 11.8.+
@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?
$ cordova plugin add cordova-android-play-services-gradle-release --variable PLAY_SERVICES_VERSION=11.8.0
@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.
But the error log indicates your gralde does not use 11.8.0
@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.
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.
I'm actually currently debugging the same issue right now too
ping
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.
This plugin requires 11.8.0
, but other plugins specify more older version.
@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
@freddiandrew nice workaround, thanks. However, I hope OneSignal will bump their Play Services version soon.
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.
What went wrong: Execution failed for task ':app:transformClassesWithDesugarForDebug'.
com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/28.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/30.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/18.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/12.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/6.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/5.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/16.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/29.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/31.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/32.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/34.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/4.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/25.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/27.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/18.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/20.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/classes/debug --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/1 --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/CordovaLib/build/intermediates/intermediate-jars/debug/classes.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/classes/debug --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/6.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/17.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/18.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/19.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/20.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/21.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/22.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/23.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/24.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/25.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/26.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/27.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/28.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/29.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/30.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/31.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/32.jar --bootclasspath_entry /Users/alberto/Library/android/sdk/platforms/android-26/android.jar --bootclasspath_entry /Users/alberto/Library/android/sdk/platforms/android-26/optional/org.apache.http.legacy.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/resources.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/rt.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/jsse.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/jce.jar --bootclasspath_entry /Library/Java /JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/charsets.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/jfr.jar --min_sdk_version 16 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
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.
What went wrong: Execution failed for task ':app:transformClassesWithDesugarForDebug'.
com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/28.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/30.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/18.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/12.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/6.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/5.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/16.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/29.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/31.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/32.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/34.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/4.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/25.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/27.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/18.jar --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/20.jar --input /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/classes/debug --output /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/desugar/debug/1 --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/CordovaLib/build/intermediates/intermediate-jars/debug/classes.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/classes/debug --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/6.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath _entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/17.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/18.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/19.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/20.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/21.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/22.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/23.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/24.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/25.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/26.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/27.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/28.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/29.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/30.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/31.jar --classpath_entry /Users/alberto/ionic/nezapp2/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/32.jar --bootclasspath_entry /Users/alberto/Library/android/sdk/platforms/android-26/android.jar --bootclasspath_entry /Users/alberto/Library/android/sdk/platforms/android-26/optional/org.apache.http.legacy.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/resources.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/rt.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/jsse.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/jce.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/charsets.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib/jfr.jar --min_sdk_version 16 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
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.
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.
Umm, it seems defaultBuildToolsVersion
is the point.
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>`
I'm submitting a ... (check one with "x")
[ ] question
[x] any problem or bug report
[ ] feature request
[x] Android
[ ] iOS
cordova information:
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:
global packages:
local packages:
System: