-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failed: Task :app:compileDebugJavaWithJavac FAILED #148
Comments
Try adding also plugin "cordova-plugin-android-support-v4-jar" to the project |
@NorthFred it's already there listed
I had Android v4 errors prior to this, now it's only these build errors that I don't know about... Any idea? |
@tbergeron: The plugin has a slightly different name: "cordova-plugin-android-support-v4-jar". |
Oh I see! I will try! So basically I should replace the one I have with this one? Not keep both right? @NorthFred thanks for the help! EDIT: After having updated ionic-audio, I now only have these errors: (seems to be gradle-related)
|
@NorthFred THANKS! With both installed it works as expected! (if I remove any of them it stops working) |
It worked for a few times and now I get the same error DAMN IT |
I tried removing |
IMO after reading docs, I guess only one is needed. |
Ok I got it: |
@tbergeron after following your advice and adding I tried the https://github.com/jwall149/cordova-multidex plugin aswell as the Have you done anything different as it seems to work for you? |
Just for info: I resolved the problem by not using any of the cordova support libs at all, this has caused the build problems. I opened the project in Android Studio and added the support library via the GUI. I know this is not ideal because I'll have to redo this step when I readd the platform but at least it works now :) |
@tobika How did you add the support library with the GUI? Not familiar with Android Studio and google is just giving answers from really old versions that aren't applicable... |
@rastographics once you are in android studio, right click on |
Thank you, this worked for me when no other solutions did. |
Thanks you @tobika , it works!!! I've fixed it without Android Studio workaround, you need to add the code to project.properties file, worked for me on Ionic 3 (sdk28): |
I'm having issues building the app for Android. FYI: I use Ionic but it shouldn't matter since this is cordova/java-related.
I tried using cordova-android 6.3, 6.4, 7.1 & 8.0 but to no avail. I always get the same build errors. So I'm starting to wonder if there's something wrong with my config. I get this error both on Windows 10 & Mac OS. I have the same config / versions on both setup.
Here's the build logs:
Here's my Windows 10 config:
EDIT: Here's my config.xml:
And my package.json:
Anyone sees anything wrong? Why am I getting these errors?
I used to have Android v4 build errors, then I installed
cordova-plugin-android-support-v4
and they went away. Now I'm stuck on these build errors. Any ideas will be welcome! ThanksThe text was updated successfully, but these errors were encountered: