Hello! I’ve installed my Ionic project on a different machine. I’ve followed the installation steps provided on the documentation. I’ve installed Android Studio and installed v25, 24 and 23 of the SDK. I am able to do ionic serve
and use the application normally. I am also able to do ionic run android
and deploy the application, but it crashes when I am initializing the contents. Running adb logcat
provided the following output at the time of the crash:
03-02 15:15:07.367 12885 16247 E AndroidRuntime: FATAL EXCEPTION: pool-1-thread-4
03-02 15:15:07.367 12885 16247 E AndroidRuntime: Process: com.myapp.myapp, PID: 12885
03-02 15:15:07.367 12885 16247 E AndroidRuntime: java.lang.NoSuchMethodError: No static method getNoBackupFilesDir(Landroid/content/Context;)Ljava/io/File; in class Lcom/google/android/gms/common/util/zzw; or its super classes (declaration of 'com.google.android.gms.common.util.zzw' appears in /data/app/com.myapp.myapp-1/base.apk)
03-02 15:15:07.367 12885 16247 E AndroidRuntime: at com.google.android.gms.iid.zzd.zzkq(Unknown Source)
03-02 15:15:07.367 12885 16247 E AndroidRuntime: at com.google.android.gms.iid.zzd.<init>(Unknown Source)
03-02 15:15:07.367 12885 16247 E AndroidRuntime: at com.google.android.gms.iid.zzd.<init>(Unknown Source)
03-02 15:15:07.367 12885 16247 E AndroidRuntime: at com.google.android.gms.iid.InstanceID.zza(Unknown Source)
03-02 15:15:07.367 12885 16247 E AndroidRuntime: at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)
03-02 15:15:07.367 12885 16247 E AndroidRuntime: at com.adobe.phonegap.push.PushPlugin$1.run(PushPlugin.java:74)
03-02 15:15:07.367 12885 16247 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
03-02 15:15:07.367 12885 16247 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
03-02 15:15:07.367 12885 16247 E AndroidRuntime: at java.lang.Thread.run(Thread.java:761)
03-02 15:15:07.372 1243 2984 W ActivityManager: Force finishing activity com.brandbassadoras.brandbassador/.MainActivity
03-02 15:15:07.392 12885 12885 D CordovaActivity: Paused the activity.
It appears that the problem comes from the phonegap-plugin-push
, but perhaps I misconfigured something? Thank you in advance
Environment:
OS: Ubuntu 16.04
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.1
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 1.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.6.0
Xcode version: Not installed