-
Notifications
You must be signed in to change notification settings - Fork 1.9k
After installing this plugin I can't build on Android #141
Comments
I went to Android Studio and update everything and it's working ;-) |
If you're installing only the neccessary sdk tools by hand like me, this did the trick for me:
|
After run SDK manager and update for Android Support Repository, Android Support Library then it's work :) |
I looked at the place where it specifying in the error message for available
into
Working as expected |
You shouldn't change the version of the dependencies of a plugin, that could lead to unexpected behaviour if that plugin expects a feature only available in newer versions. You should instead update your You're fine on this one, however, as this plugin (phonegap-plugin-push) doesn't use any of the new features on 23+ (yet). |
After removing this plugin it still leaves residual garbage in plugins/android.json, platforms/android/AndroidManifest.xml, platforms/android/build.gradle and platforms/android/project.properties. Removing all references to com.android.support:support-v13:23+ in platforms/android/project.properties and platforms/android/build.gradle fixed the issue with not being able to build project. |
@autonomous1 That's an issue with cordova-cli by the way, you might want to create an issue at https://issues.apache.org/jira/browse/CB. |
This did the trick for me too :
|
exact solution i found for me is that: you need to install means you need to install/update your SDK extra facilities whic you can do with command line its easy. android update sdk --no-ui --filter extra. |
Updating still didn't solve my problem.
|
@NaurozAhmad I assume you've already found the solution. But for others to see as well. as noted above, try installing "Google Repository" as well. This solved the issue for me. |
After spending 2h on trying build apk with phonegap-plugin-push plugin I found solution.
|
Thank you @alexbuijs |
This did the trick for me too : I have run this command on the android sdk root folder |
In case anyone still finds this thread with the same issue and is like "but it still won't compile!" my problem was that I was updating my android sdk via Program Files rather than Program Files x86, which is where Cordova was looking for the sdks. |
Thank you @alexbuijs |
For me next worked:
|
thanks @alexbuijs |
If any of these didn't solve the problem, try to recreate android platform. Make sure you back up the important stuff, and simply This worked for me. I think installing |
Run |
Running |
I ran into the same issue and did the following to resolve it.
Note: Instead of running the command above, you can install "Android Support Repository" by opening Android SDK Manager. |
My problem was a little bit different so fixing the SDK didn't solve the issue, I tried fixing the JDK and it worked for me. On Ubuntu terminal type: |
android update sdk --no-ui --all --filter "extra-android-m2repository" |
I had to do not only |
@cristovao-trevisan Thanks!!! no one tells you but apparently you CAN'T use openjdk with cordova, or at least it need more configuration. My problem was obtaining a certificate from sun that make the whole platform add fail. For those looking how to install oracle java on ubuntu, |
@DNAngeluS This is (part of) the docker file I use for installing OpenJDK 8 and the Android tools necessary for building APK's with Cordova:
|
Thanks @alexbuijs !!! I was building my own just to avoid dealing with these again. I think I'll use part of that code. |
How can i run this code, it is not working from command prompt - android update sdk --no-ui --all --filter "extra-android-m2repository" |
@jessicastorm1986 Make sure your path variables are correct for your android SDK. |
@BradyLiles , i am ableto make an export without this plugin, but after adding this it is giving me error, my paths are correct though [see attached file] ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk error-
BUILD FAILED |
i've just restarted my machine and problem solved :P |
This did the trick for me too in git console.
|
Hello guys i am new on IONIC 2 I implemented native facebook login in my ionic 2 app. for this i add cordova-plugin-facebook4. and follow all the instruction from this link: https://ionicthemes.com/tutorials/about/ionic2-facebook-login after follow all the instruction when i run command to make android apk it give me error build faild. for this i update my android. but till now this error do not solve and not make apk file please help me. |
This thread has been automatically locked. |
It says:
I tried to change config.xml since I heard in other issue it can be about minsdk, but my Cordova is 5.3.1 and I set minsdk to 20, 21, 22 ... but again the same problems.
BTW, I read about #136 and:
dependencies {
compile "com.android.support:support-v13:23+"
}
Thank you
The text was updated successfully, but these errors were encountered: