-
-
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
PhoneGap build fail - Android #240
Comments
This error is caused by a Gradle version mismatch. The exact cause depends on which other plugins and which version of the This plugin currently pins v25 of the Android Support Library. However, If you were building locally, the simplest solution would be to install cordova-android-support-gradle-release into your project, which will override the Android Support Library versions specified by plugins in their Gradle config (including this plugin) to the specified version. However, since Phonegap Build does not support hook scripts, this plugin will not work in the Phonegap Build environment. |
…latest release version of Cordova Android platform: cordova-android@6.3.0. Relates to #240. Patch version bump: 3.6.8
Patch version published to npm as |
You are a legend! Works perfectly fine on PhonegapBuild (Android) with:
|
Hi there, Juts a quick question. Phonegap build works perfectly fine with the v3.6.8. but not with the v3.7.0. With v3.7.0, we are getting a build error. Do we have to use |
Seems that one of the pull requests I accepted before publishing v3.7.0 set the Android Support Library to v25 and I didn't notice, so inadvertently reverted it back to v25. Will publish v3.7.1 patch version to set it back to v26. |
published to npm as |
v3.7.1 works perfectly fine with the new updates. Thanks again! |
With the version @3.7.1 I have this error #262 |
@AndreVicenteW Update to latest version 4.0.5 |
With version 4.0.5 I have the error "/build/intermediates/res/merged/debug/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'." |
You need to build using API 26 (or above) SDK: https://stackoverflow.com/a/45310170/777265 |
i am use this not resolve my error :(
|
after few day every thing is fine :( |
You are using an outdated version of this plugin - please update to the latest version |
the latest update same problem :( |
As you can see from the commit history, the latest update (v4.0.8) made fixes specifically for iOS, so has no impact on Android. The last change made to the Android Support Library version in this plugin was made by this commit on 9 Oct 2017. So more likely another component in your app has changed and is now conflicting with this plugin. |
mr Dave i use only your plugin on my config file
and this some screen shots please check this error please :( |
this is test project include only your plugin https://github.com/dizzlr/TestDiagnostic-.git you can test it on phonegap build |
In your test project, you are not specifying the Phonegap Build CLI version, so it's defaulting to CLI 6.5.0 and hence building with If you update your test project to use CLI 7.1.0, it will build with
You can confirm this works by building the example project in Phonegap Build which uses console output
|
i change the cli version but still have the same build failure this screen shot this the test app update with cli-7.1.0 |
thank you ,I'm sorry to disturb you ,but this plugin toooo great and very helpful to me |
The problem is your test project (https://github.com/dizzlr/TestDiagnostic-) is not correctly set up. If you look at the build log, it fails with this error:
Because your That has nothing to do with this plugin. console output
|
mr dave many thanks to you i fix icons path and change cli version evry thing is fine now :) |
this two plugins made conflict with diagnostic plugin |
Hi there,
config.xml settings:
I'm still getting below error:
FAILED
FAILURE: Build failed with an exception.
Execution failed for task ':processDebugResources'.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4.238 secs
Error: /project/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/project/build/intermediates/res/merged/debug/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
/project/build/intermediates/res/merged/debug/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
FAILURE: Build failed with an exception.
Execution failed for task ':processDebugResources'.
If I remove the
<plugin name="cordova.plugins.diagnostic" source="npm" />
then the I can run the build process without any issues.Could you please advise?
The text was updated successfully, but these errors were encountered: