apptentive / apptentive-android

Apptentive Android SDK
http://www.apptentive.com
BSD 3-Clause "New" or "Revised" License
65 stars 64 forks source link

Lint Error for ResourceCycle #69

Closed justinelsberry closed 10 years ago

justinelsberry commented 10 years ago

Because Android allows for inheritance of styles without specifying the parent attribute, specifying the parent of ApptentiveHeader as ApptentiveHeader.Plain, etc. creates a resource cycle that Lint doesn't like.

Error: Style Resource definition cycle: ApptentiveHeader => ApptentiveHeader.Plain => ApptentiveHeader [ResourceCycle] Error: Style Resource definition cycle: ApptentiveHeaderText => ApptentiveHeaderText.Plain => ApptentiveHeaderText.Default => ApptentiveHeaderText [ResourceCycle] Error: Style Resource definition cycle: ApptentiveMainArea => ApptentiveMainArea.Plain => ApptentiveMainArea [ResourceCycle] Error: Style Resource definition cycle: ApptentiveMessageCenterDrawer => ApptentiveMessageCenterDrawer.Plain => ApptentiveMessageCenterDrawer [ResourceCycle]

skykelsey commented 10 years ago

Thanks Justin. This warning isn't causing you any problems is it? I think we will be changing the UI that uses this in the not too distant future, so if it's not, I'll leave it as-is until the redesign.

justinelsberry commented 10 years ago

@skykelsey no worries, I just set my build to not abort on lint errors for now

BAIZOR commented 10 years ago

I have these errors in new Android Studio 0.6.0 How can I ignore them for build new release with Apptentive?

skykelsey commented 10 years ago

Hey guys. I've changed the SDK to remove style inheritance altogether. This should clear up the problem.

spectrumColors commented 9 years ago

i am facing same issue ,how to solve this ? can you please explain it