Reputation: 7601
When asked to upgrade to the newest Gradle 4.1? (2018-04-14) I get very weird errors I have never seen before. The app runs for years without this issue.
After searching the complete project again, I did find a @android:attr/windowEnterAnimation, in a place I did not expect.
For appt2 errors? Here is a nice article on how to move forward.
Upvotes: 1
Views: 221
Reputation: 2836
<!-- When referencing resources from the 'android' namespace, omit the '@' symbol. -->
<item name="@android:windowEnterAnimation"/>
When building the module, AAPT2 now throws the following build error: Error: style attribute '@android:attr/windowEnterAnimation' not found
I am quite sure, in some of your animation file you have used '@'. Remove that.
If you use the new gradle, you have to follow the structures and rules properly, this entire details is put in their website. https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#new_configurations
Upvotes: 2
Reputation: 680
replace "@android:attr/
" with "?attr
" maybe it will solve your problem.
Upvotes: -1