Instabug / Instabug-Cordova

Instabug's Plugin for Cordova
https://instabug.com/
23 stars 25 forks source link

[ERROR] Can't build after adding plugin #81

Closed Galiza closed 4 years ago

Galiza commented 5 years ago

Following Cordova documentation to install the latest version of the plugin, I can't build the project anymore.

Here's the screenshot of the error: instabug

alyezz commented 5 years ago

@Galiza can you please share with us the the steps you followed to reproduce this error?

Galiza commented 5 years ago

@alyezz Of course!

  1. Removed node_modules/ platform/ plugin/ from our project (to remove incompatibility with another branch)
  2. npm install
  3. cordova platform add android@7.1.4
  4. cordova plugin add instabug-cordova
  5. ionic cordova build android
  6. Error during build
tarun57 commented 5 years ago

Same here after adding this plugin build failed on run android or build android in ionic 3. I am using ionic 3 android platform@8.0.0 and the issue is this.

Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=undefined (recommended setting) ANDROID_HOME=/home/pizone/Android/Sdk (DEPRECATED) Subproject Path: CordovaLib Subproject Path: app

Task :app:preBuild UP-TO-DATE Task :CordovaLib:preBuild UP-TO-DATE Task :CordovaLib:preDebugBuild UP-TO-DATE Task :CordovaLib:checkDebugManifest UP-TO-DATE Task :CordovaLib:processDebugManifest UP-TO-DATE Task :app:preDebugBuild FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 7s 3 actionable tasks: 1 executed, 2 up-to-date /home/pizone/ionic_project/applemusic/platforms/android/gradlew: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.

BUILD FAILED in 7s [ERROR] An error occurred while running subprocess cordova.

    cordova run android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.
alyezz commented 5 years ago

@tarun57 @Galiza can you please check step 2 here

tarun57 commented 5 years ago

@alyezz from this am able to generate build. But this is not working when i'm shaking device it was not showing any options.

alyezz commented 5 years ago

@tarun57 Can you please open a separate issue with the details?

Galiza commented 5 years ago

@tarun57 @Galiza can you please check step 2 here

Hey @alyezz, I just checked, it's there, here's the following build.gradle:

allprojects {
    repositories {
        maven {
            url "https://maven.google.com"
        }
        jcenter()
        google() // Google's Maven repository from cordova-plugin-firebase
        maven {
            url "https://sdks.instabug.com/nexus/repository/instabug-cp"
        }  
      }
    //This replaces project.properties w.r.t. build settings
    project.ext {
      defaultBuildToolsVersion="27.0.1" //String
      defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
      defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
      defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
    }
}
Galiza commented 5 years ago

Hey @alyezz! Any news regarding this issue?

AliAbdelfattah commented 5 years ago

Hi @Galiza, could you please share the version of instabug-cordova plugin that's currently installed?

AliAbdelfattah commented 5 years ago

@Galiza, we've identified the error in our native Android SDK and we're currently working on a solution. We're very sorry you've run into this error, we'll update you when it's fixed.

Galiza commented 5 years ago

@AliAbdelfattah Thank you so very much for this! Please do let me know whenever you fix it!

Galiza commented 5 years ago

@HeshamMegid @AliAbdelfattah @alyezz So, any news? It's been over a month and still nothing.

Edmu commented 4 years ago

also fails to be build on android:

BUILD FAILED in 31s .../platforms/android/gradlew: Command failed with exit code 1 Error output: Note: .../platforms/android/app/src/main/java/com/instabug/cordova/plugin/IBGPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. D8: Cannot fit requested classes in a single dex file (# methods: 78327 > 65536) FAILURE: Build failed with an exception.

AliAbdelfattah commented 4 years ago

Hi @Edmu, this seems like a different issue. Please open a new issue (and fill out the template) to be able to help you.

Edmu commented 4 years ago

@AliAbdelfattah

85

What template? Can't find any.

AliAbdelfattah commented 4 years ago

Hi @Galiza this should be fixed on our next Cordova release this week.

AliAbdelfattah commented 4 years ago

Closing this as the fix has been released a while ago.