-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Android Support Library 41: error compiling #168
Comments
Check target SDK version is 23 or above and that Android Support Library is up-to-date in Android SDK manager. Check what version of See #87. |
See also #161 |
android 5.2.2 Support Library is the last available: 41 |
If i use a specific version of support library replacing |
As you can see in #161, I was able to reproduce the issue with [email protected] - updating to latest cordova-android resolved the issue. Latest release is currently [email protected] |
Tnx |
Let me know/close the issue if that works |
Sorry but it doesn't works with latest [email protected], same error |
I'm not able to reproduce the issue with [email protected] - see the build output below: build output
Can you try the following things:
|
I'm impacted by this issue, too. [email protected], Android support repository is 41, Android Support Library is 23.2. You can find my build log on SO |
@mlemanczyk As I'm unable to reproduce the issue the using the same versions of the SDK components as you (see build output above) while building the example project, I would ask that you do the following:
Building the example project should eliminate the possibility of a conflict with another plugin in your project. |
fyi, I'm not sure if that's meaningful, but I needed to install lodash, elementtree, plist, tostr & xcode before I could compile your example project. It failed compiling with the same error. Attached you can find the output (I replaced parts of my paths with (...) in the file). Please remember that this is Windows environment and normally I'm using VS 2015 to build Cordova project. sdkmanager doesn't exist in my tools/bin folder. In fact I don't have bin folder there. The one in Android SDK root folder neither takes --list nor /list as the parameters. I'm listing the libraries manually below. Please let me know if that's what you wanted.
It also fails with the following libs:
It finally worked with the following config:
So that you know, my 2 friends started experiencing the same issue. Example build output - Success.txt cordova platform ls output
|
This is likely because you running a very old version of Node, hence the warning message in your build log:
v0.12.2 was released 2015-03-31 and so is likely not compatible the installation method used by
If you install the latest Android SDK components and the latest cordova-android version (6.1.1), does it work?
If not, post the build log for the failed build with |
I've updated Android SDK packages & nodejs to the latest versions and ran the command you provided. I also needed to upgrade JDK to v1.8, otherwise the build was failing due to JDK incompatibility. Now I got a different error, Gradle & Java heap related. I'm afraid that this solution is hardly acceptable for VS users, though. MS recommends using NodeJS v0.12.2 due to its biggest compatibility with different Cordova versions. Build log from failing compile after applying the changes you recommended.
Cordova platform ls output
Without applying your changes, everything compiles and Android SDK packages can be updated, except for Android Support Repository. If it is updated to rev. 41, the compile fails. If it's left at rev. 16, everything is fine. |
Seems this is down to Visual Studio not playing nice with Android/Java - see here for solution.
The intended build environment for this plugin is the latest vanilla Cordova CLI and platforms with the latest versions of any dependencies (Java/Node/Android SDK components). Projects containing this plugin will build fine once dependency issues are updated/resolved. You are welcome to create/maintain a fork which pins these dependencies to older versions for the purposes of Visual Studio users. |
Hi. Trying to build a blank project with only this pugin: https://bitbucket.org/romanvenica/test/ on Phonegap Build returns the same error. |
@romanvenica You need to specify
For example, try building: https://github.com/dpa99c/cordova-diagnostic-plugin-phonegap-build-example It builds fine with Phonegap Build: Phonegap Build output
|
@dpa99c, your test project finally compiled with Android Support Repository 41, after setting _JAVA_OPTIONS and workarounding Gradle's issue with not accepted licenses using this SO. Switching back to nodejs v0.12.2 does not break the compile. But switching your project back to I'm trying to understand what that really means. After Do you foresee a risk in switching to android-25 target? According to Google API 25 has 0.2% of the market, only. While majority of people have API 16-23. We're targeting API 16 and that's what we're testing with. I'm concerned if that will mean that we're risking issues with 97.2% of users, if we target it at API 25. I'm sorry if that's a basic question. This is my first Android project. |
@mlemanczyk Using By using the latest version of Android SDKs are backwardly compatible - building with Have a look at this SO answer for an explanation of the various Android SDK versions. Also see Cordova's Android platform guide - note that it's out-of-date as it doesn't include details of |
… PGB example project. Clarifies #168.
@vaprea @mlemanczyk Can this issue now be closed? |
i have same issue, i dont know if i should open another one or post here ? here my version
cordova plugin list
config.xml
everything on android sdk are updated |
@mickadoua Did you solve this issue? I am facing the same. |
@rajeevriitm sorry i forgot, how i fix that, :s |
@mickadoua looking at the list of plugins you posted, it was likely a similar Gradle collision as outlined at the bottom of #203 - you have the same ImagePicker plugin referenced. |
@mickadoua Did you have to fork any plugins? |
Hi,
i receive the following error compiling the project with Android Support Library version 41:
Error
retrieving parent for item: No resource found that matches the given name'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Tnx
The text was updated successfully, but these errors were encountered: