-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Building for Android is a quest #179
Comments
Exploring this repo a tad further it seems like |
@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. |
Hey Simon, 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. Regards, |
@bramus thanks for the heads up, I just updated the README. |
👍 |
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. |
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. import android.app.NotificationManager; public class MainActivity extends CordovaActivity
} When I try to build the application in a command prompt using "cordova build android", I am getting the following error. Please help me to get get rid of this. I have added Android sdk path and Java sdk path to environment variables, |
This thread has been automatically locked. |
I have Android SDK 23 and 24 installed. Adding this plugin and then building my app (powered by Ionic) via
ionic build android
does not work.The build instruction spits out this error
The required dependency is not found on Maven. When removing
cordova.system.library.1=com.android.support:support-v13:23+
fromplatforms/android/project.properties
(so that it does not longer look on Maven for said dependency) the build still fails, as the required classes are still not found.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
android-support-v13.jar
, which contains the required classes.I've found a Cordova Plugin that contains this
.jar
file: https://github.com/nnexai/cordova-plugin-android-support-v13. When installing said plugin (cordova plugin install https://github.com/nnexai/cordova-plugin-android-support-v13
) – in addition to the removal of the linecordova.system.library.1=com.android.support:support-v13:23+
fromproject.properties
– the build now works fine.I was wondering: is it possible to not inject the
cordova.system.library.1=com.android.support:support-v13:23+
requirement, and – instead – requirehttps://github.com/nnexai/cordova-plugin-android-support-v13
?The text was updated successfully, but these errors were encountered: