Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Building for Android is a quest #179
I have Android SDK 23 and 24 installed. Adding this plugin and then building my app (powered by Ionic) via
The build instruction spits out this error
The required dependency is not found on Maven. When removing
Having Googled a bit around I've found some solutions hinting to install “Android Support Library", yet that already was the case. Another solution mentioned
I've found a Cordova Plugin that contains this
I was wondering: is it possible to not inject the
@bramus Yes, I used to included the
The proper way to include this jar as of Android Studio/Android 5/Gradle/Maven is via the framework tag. This gets around the multi jar problem and is the way Google is doing things going forward so I'm not going backwards. In fact I'll be removing gcm.jar and replacing it with another framework in the near future.
I'd rather not depend on an external plugin for this functionality as I'm not sure when they update their jar version. Instead I will document how to install the jar locally so your build will just work.
Thanks for the quick response.
I've checked and I had ”Android Support Library” already installed, yet things were still going wrong: the dependency could not be resolved.
Looking a bit further I found this interesting note on https://developer.android.com/tools/support-library/setup.html:
When looking at the screenshot above you seem to also have this installed, yet I hadn't. Installing “Android Support Repository” (the latest: v20) eventually fixed it for me.
Its still a quest (atleast for me)
build errors i am getting -
I do have required files -
and here's my plugins -
<plugin name="cordova.plugin.googleplus" spec="https://github.com/EddyVerbruggen/cordova-plugin-googleplus"/> <plugin name="cordova-plugin-whitelist" spec="^1.0.0"/> <plugin name="cordova-plugin-customurlscheme" spec="^4.0.0"> <variable name="URL_SCHEME" value="xxxxxx"/> </plugin> <plugin name="cordova-plugin-google-analytics" spec="^0.8.0"/> <plugin name="cordova-plugin-dialogs" spec="^1.1.1"/> <plugin name="cordova-plugin-statusbar" spec="^1.0.1"/> <plugin name="cordova-plugin-facebook4" spec="^1.3.0-0"> <variable name="APP_ID" value="xxxxxxxxxxxxxx"/> <variable name="APP_NAME" value="xxxxx"/> </plugin> <plugin name="phonegap-plugin-push" spec="^1.3.0"/> <plugin name="cordova-plugin-device" spec="^1.0.1"/>
what i have tried -
haven't tested push functionality yet. will report if everything is working fine.
referenced this issue
Oct 29, 2015
Guys I need help, I am new to Mobile App Development, I have created a sample cordova project and added the Notification Builder in MainActivity.
public class MainActivity extends CordovaActivity
Please help me to get get rid of this. I have added Android sdk path and Java sdk path to environment variables,