Closed Galiza closed 4 years ago
@Galiza can you please share with us the the steps you followed to reproduce this error?
@alyezz Of course!
npm install
cordova platform add android@7.1.4
cordova plugin add instabug-cordova
ionic cordova build android
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.
What went wrong: Could not resolve all files for configuration ':app:debugCompileClasspath'.
Could not find com.instabug.library:instabug:8.6.3.0. Required by: project :app
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
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.
What went wrong: Could not resolve all files for configuration ':app:debugCompileClasspath'.
Could not find com.instabug.library:instabug:8.6.3.0. Required by: project :app
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
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 from this am able to generate build. But this is not working when i'm shaking device it was not showing any options.
@tarun57 Can you please open a separate issue with the details?
@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
}
}
Hey @alyezz! Any news regarding this issue?
Hi @Galiza, could you please share the version of instabug-cordova plugin that's currently installed?
@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.
@AliAbdelfattah Thank you so very much for this! Please do let me know whenever you fix it!
@HeshamMegid @AliAbdelfattah @alyezz So, any news? It's been over a month and still nothing.
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.
Hi @Edmu, this seems like a different issue. Please open a new issue (and fill out the template) to be able to help you.
@AliAbdelfattah
What template? Can't find any.
Hi @Galiza this should be fixed on our next Cordova release this week.
Closing this as the fix has been released a while 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: