Skip to content
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 build fail with "colorBackgroundFloating" not found on OSX #1858

Closed
brandyscarney opened this issue Jan 17, 2017 · 1 comment
Closed

Comments

@brandyscarney
Copy link
Member

From @eidng8 on January 17, 2017 2:55

Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
Running ionic build android --prod on OSX, reports failure:

FAILURE: Build failed with an exception.



* What went wrong:

Execution failed for task ':processDebugResources'.

> 
com.android.ide.common.internal.LoggedErrorException: Failed to run command:

  	/Android/SDK/build-tools/25.0.2/aapt package -f --no-crunch -I /Android/SDK/platforms/android-22/android.jar -M /Users/someone/gitlab/ci/runner/builds/defa2b2c/0/someproj/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /Users/someone/gitlab/ci/runner/builds/defa2b2c/0/someproj/platforms/android/build/intermediates/res/debug -A /Users/someone/gitlab/ci/runner/builds/defa2b2c/0/someproj/platforms/android/build/intermediates/assets/debug -m -J /Users/someone/gitlab/ci/runner/builds/defa2b2c/0/someproj/platforms/android/build/generated/source/r/debug -F /Users/someone/gitlab/ci/runner/builds/defa2b2c/0/someproj/platforms/android/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package edu.self.anapp -0 apk --output-text-symbols /Users/someone/gitlab/ci/runner/builds/defa2b2c/0/someproj/platforms/android/build/intermediates/symbols/debug

  Error Code:

  	1

  Output:

  	Failed to generate resource table for split ''

  	/Users/someone/gitlab/ci/runner/builds/defa2b2c/0/someproj/platforms/android/build/intermediates/res/debug/values-v23/values.xml:6: error: Error: No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating').

Related code:
There are 3 identical lines in 3 intermediate files, including the aforementioned values.xml:

<item name="cardBackgroundColor">?android:attr/colorBackgroundFloating</item>

Other information:

I can't find anywhere else in the whole code base about the colorBackgroundFloating.

However, the build goes fine on another Windows 7 box.

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Mac box:

Your system information:

Cordova CLI: 5.1.1
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
ios-deploy version: 1.9.0
ios-sim version: 5.0.13
OS: OS X Yosemite
Node Version: v4.4.4
Xcode version: Xcode 7.2.1 Build version 7C1002

Win7 box:

Your system information:

Cordova CLI: 6.1.1
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v4.3.1
Xcode version: Not installed

Copied from original issue: ionic-team/ionic-framework#10062

@ionitron-bot
Copy link

ionitron-bot bot commented Jul 12, 2018

Thanks for the issue! This issue appears to be associated with an old version of the Ionic CLI. Please update to the latest CLI version, which supports all versions of the Ionic Framework. If the issue is relevant and if it persists after updating to the latest CLI version, please create a new issue.

Thank you for using Ionic!

@ionitron-bot ionitron-bot bot closed this as completed Jul 12, 2018
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jul 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants