Oh geez. Your build failed... And it keeps failing

  • 1
  • Problem
  • Updated 4 years ago
I have been told by Android that I have to rebbuild the app with the latest version of phonegap due to security issues in the phonegap build version so I have updated all my plugins to use NPM ones as the other repository is defunct and submitted my tree to phonegap to be built with the latest version.

I have been waiting patiently for my app to build but it wont build after a week or two I am still waiting for you to email me. It is not a helpful build error, my code seems valid so I have no idea what your build error might be. My app ID is 1259642 and its a private repo. The error message is below, please help me phonegap, your my only hope.

'Oh geez. Your build failed. Sorry, but a problem occurred on the build server'

'An intern has been dispatched to sit next to our development team and make well-timed passive aggressive jabs at them until they resolve the issue.

You will be politely notified when some action has taken place.

Please note: if you delete your app, we won't be able to debug it (to help you and anyone else who might encounter this issue). If you keep the app around, we'll email you and let you know what was wrong.'
Photo of Mark Townsend

Mark Townsend

  • 4 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
No need to wait. Nobody will take action at Phonegap Build.

The build log might indicate what went wrong. Did you take a look?
Photo of Mark Townsend

Mark Townsend

  • 4 Posts
  • 0 Reply Likes
Thanks for letting me know! Dang phonegap...

I found the error log, didn't know that was there so thanks. Trying to make sense of the error:

:processReleaseResources/project/build/intermediates/res/release/values-v23/values.xml:5: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.

/project/build/intermediates/res/release/values-v23/values.xml:20: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.

FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processReleaseResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/android-sdk/build-tools/23.0.1/aapt package -f --no-crunch -I /android-sdk/platforms/android-22/android.jar -M /project/build/intermediates/manifests/full/release/AndroidManifest.xml -S /project/build/intermediates/res/release -A /project/build/intermediates/assets/release -m -J /project/build/generated/source/r/release -F /project/build/intermediates/res/resources-release.ap_ --custom-package com.pauzeradio.app -0 apk --output-text-symbols /project/build/intermediates/symbols/release
Error Code:
1
Output:
/project/build/intermediates/res/release/values-v23/values.xml:5: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.

/project/build/intermediates/res/release/values-v23/values.xml:20: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
This doesn't look very good at all.
Are you upgrading from PGB3.x, or even PGB2.x?

Many things have changed, meanwhile. Not just the plugins.
If your zip file or git input is publicly available, please post its url and I'll be happy to have a look (in about 10 hours), because I'll be offline for a while, now).
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Mark,
Since this is your first post, please answer the following question.
- Is this your first hybrid App?
- Are you using the Phonegap Desktop App?
- Are you using CLI, SDK or Build? Please do not assume the answer, please read the link.

This FAQ should also help. Read the bold sentences first.
Top Mistakes by Developers new to Cordova/Phonegap

Thanks
Jesse
Photo of Mark Townsend

Mark Townsend

  • 4 Posts
  • 0 Reply Likes
PGB1 I believe eek! Been a while...

Okay thanks, I will try to debug but if my head gets sore from banging against a brick wall then I will create a public version otherwise I will post the fix. Many thanks again.
Photo of Mark Townsend

Mark Townsend

  • 4 Posts
  • 0 Reply Likes
@JesseMonroy650

This is my first and only one, publsihed on iOS, WP8 and Android. (Pauzeradio)

Not desktop app, putting together locally, bitbucket private repo to phonegap build. (tried the desktop app last week and it just freezes with spinning icon)

I am using the Phonegap Build (https://build.phonegap.com/) to clarify.

Thanks
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Mark
Okay. Someone needs to work on blog about upgrading from 2.x or 3.x to current default (cli-5.2.0). (It may be me.)

This recent thread covers the topics for upgrading
Does anyone know where to find article or document on how to migrate from phonegap build 3.5.0 to phonegap build 5.2 and above ?

This FAQ should also help. Read the bold sentences first.
Top Mistakes by Developers new to Cordova/Phonegap

Let us know what else you need.

Jesse