-
Notifications
You must be signed in to change notification settings - Fork 147
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
corodva build android ERROR: android.support.v4 #17
Comments
是不是缺少这个包? 请把具体的日志信息贴出来。 |
I think I have the same problem. The plugin does not compile, I have an error which is:
When I launch "cordova run android". It looks like you are talking about a package that I am lacking. |
I think I found a solution to my problem. I will explain it in english, because, you know, we are on the internet and we need to understand each other: you just need to install a plugin which will add a "android.support.v4.jar" which seems to be needed for this plugin. I found a plugin which does that: https://www.npmjs.com/package/cordova-plugin-android-support-v4 A simple "cordova plugin add cordova-plugin-android-support-v4 " will do the trick. |
Congratulations for your success build. ⛳ Another way: |
config.xml add |
Hi, after adding cordova plugin add cordova-plugin-android-support-v4 the problem is still exist and when trying to build get following Note: Some input files use or override a deprecated API. my cordova version is 6.4.0 adding <framework src="com.android.support:support-v4:23.3.0+" /> to config.xml didnt help me |
Resolved, problem that https://www.npmjs.com/package/cordova-plugin-android-support-v4 doesnt help after installing it, I change android-support-v4.jar at platform/android/lib to file from %ANDROID_PATH%/extras/android/support/v4 and now it works PS: I have not seen folder extras/android/support/v4 before cause i did'nt install Android Support Library at Android SDK Manager, for now it Obsollete for SDK and to show it at Extra folder need mark Obsolete checkbox under Show label . For more details look at http://startandroid.ru/images/stories/lessons/L0114/L0114_010.JPG |
@mideon Good job 😄 👍 |
I think getting same error in here, how to fix this?
|
@vaenow i think , in my case this plugin still not working in android 6.x and later |
Please this problem is still there. Even after following all the instructions in this thread. the folder path %ANDROID_PATH%/extras/android/support/v4 no longer available. Any solution please |
https://cordova.apache.org/docs/en/6.x/plugin_ref/spec.html#framework
add below to plugin.xml |
platforms/android/project.properties 文件中加入 |
For me adding the plugin that @twothirdsFR mentioned worked too (plugin "cordova-plugin-android-support-v4"). |
I posted my problem above some days ago... Tried and resolved this by removing the android platform, then deleting everything from "..\node_modules", then deleting everything from "..\plugins" then cleaned "config.xml" and "package.json" of my project leaving only the plugins I needed, removed "cordova-plugin-android-support-v4" and leaved "cordova-plugin-local-notification" only. Then I executed "npm install", "ionic cordova platform add android" and the build works. People, I need help to solve this problem on an Ionic project that I tried but could not solve it alone.
I tried to add to <config.xml>
Tried to add in the package.json:
Tried to remove android platform, added again. Someone can help with the problem? Tell me if I need to remove something from config.xml or package.json... or if I need to add something else... I'm kinda beginner, so please tell step by step... Thanks!! I'm using:
|
same problem with Cordova 7.0.1, I've tried installed 'cordova-plugin-android-support-v4', remove and re-add platform android, and still got build problem:
|
缺少support包,编译通不过,希望添加support包依赖
The text was updated successfully, but these errors were encountered: