Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5965] Android build fails - No resource found that matches the given name (at 'textAppearance' with value '@style/TextAppearance.AppCompat.Notification')

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2018-12-12T09:24:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
Reportereric harms
AssigneeShak Hossain
Created2018-10-11T19:04:46.000+0000
Updated2018-12-12T09:24:25.000+0000

Description

Just updated to new SDK 7.4.0.GA, and when building for Android (via cli), Im getting the error below. Ive been building with 7.0.1.GA before updating today without issue, Ive tested - 7.4.0.GA - 7.3.0.GA and I get the error on these SDK versions. Using 7.2.0.GA works ok.
[INFO]  Running AAPT: /Users/eharms/Library/Android/sdk/build-tools/26.0.2/aapt "package" "-f" "-m" "-J" "/Users/eharms/Documents/Appcelerator_Studio_Workspace/AppceleratorRebuild/build/android/gen" "-M" "/Users/eharms/Documents/Appcelerator_Studio_Workspace/AppceleratorRebuild/build/android/AndroidManifest.xml" "-A" "/Users/eharms/Documents/Appcelerator_Studio_Workspace/AppceleratorRebuild/build/android/bin/assets" "-S" "/Users/eharms/Documents/Appcelerator_Studio_Workspace/AppceleratorRebuild/build/android/res" "-I" "/Users/eharms/Library/Android/sdk/platforms/android-27/android.jar" "-F" "/Users/eharms/Documents/Appcelerator_Studio_Workspace/AppceleratorRebuild/build/android/bin/app.ap_" "--output-text-symbols" "/Users/eharms/Documents/Appcelerator_Studio_Workspace/AppceleratorRebuild/build/android/intermediates/bundles" "--no-version-vectors" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.coreui:android.support.coreutils:android.support.exifinterface:android.support.fragment:android.support.graphics.drawable.animated:android.support.graphics.drawable:android.support.mediacompat:android.support.transition:android.support.v4:android.support.v7.appcompat:android.support.v7.recyclerview:android.support.compat:android.support.design:android.support.v7.cardview:com.google.android.gms"
[ERROR] Failed to package application:
[ERROR]
[ERROR] /Users/eharms/Documents/Appcelerator_Studio_Workspace/AppceleratorRebuild/build/android/res/layout/activity_add_source.xml:10: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/TextAppearance.AppCompat.Notification').

Comments

  1. eric harms 2018-10-15

    Hello, So I've narrowed this down to my Stripe Android module. My Stripe module has been using stripe-android-5.1.0.aar, and when I try and rebuild my module with the current setup and 7.4.0, I get the same error message that I was getting when building my app. after rebuilding with the latest Stripe SDK (stripe-android-6.1.2.aar) my app builds without the error. When I add this to my app, the app builds ok, but I get the following error on startup, and it just loops and loops with the same error in my console.
       [ERROR] TiExceptionHandler: SyntaxError: Unexpected end of JSON input
       [ERROR] TiExceptionHandler:     at JSON.parse (<anonymous>)
       [ERROR] TiExceptionHandler:     at HTTPClient.client.onload (eval at Module._compile (/app.js:733:8), <anonymous>:84:21)
       [ERROR] V8Exception: Exception occurred at undefined:1: Uncaught SyntaxError: Unexpected end of JSON input
       [ERROR] TiHTTPClient: (main) [95,8635] Could not decode response text.
       [ERROR] TiExceptionHandler: (main) [3,8638]
       [ERROR] TiExceptionHandler: ^
       
    I can then close the error pop up in my app and continue to use the app, however its kinda buggy at that point. If I can get some help deciphering the error message, that would be great. Thanks
  2. eric harms 2018-10-15

    Hello, just another note -- if I build with 7.2.0, things work ok. So just as I mentioned in the first message, 7.4.0 and 7.3.0 produces the errors. thanks
  3. Sharif AbuDarda 2018-11-29

    Hello, Please try with SDK 7.5.0.GA and let us know if the issue still there? Thanks.
  4. eric harms 2018-12-03

    Hi Sharif, Still not working in 7.5.0.GA. Is there anyway I can somehow comment it out on the module code side, or add something to my app code to catch it? Im not super clear on what exactly is causing the issue, but there is a similar SO issue here https://stackoverflow.com/questions/48241620/errorresource-style-textappearance-compat-notification-info-aka-packageid-te
  5. Rakhi Mitro 2018-12-05

    Hello, Thanks for your feedback. It would be great if you can share a simple test project to reproduce the issue on our end. Also provide your environment details.

JSON Source