[AC-5965] Android build fails - No resource found that matches the given name (at 'textAppearance' with value '@style/TextAppearance.AppCompat.Notification')
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2018-12-12T09:24:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | eric harms |
Assignee | Shak Hossain |
Created | 2018-10-11T19:04:46.000+0000 |
Updated | 2018-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').
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.
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
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
Hello, Please try with SDK 7.5.0.GA and let us know if the issue still there? Thanks.
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
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.