Skip to main content
Kofax

Style Attribute Not Found errors building MobileDemo app in Android Studio 3.x

Article # 3036907 - Page views: 1080

Issue

I am running Android Studio v3.x.

When I attempt to build the MobileDemo sample app, I receive several error messages like the following:

Error:(70, 5) error: style attribute '@android:attr/windowEnterAnimation' not found.
Error:(70, 5) error: style attribute '@android:attr/windowExitAnimation' not found.
Error:(80, 5) error: style attribute '@android:attr/windowEnterAnimation' not found.

 

Cause

This can be caused by a change in an update Android Studio.

 

Solution

Navigate to this file:

C:\Projects\KofaxMobileSDK-3.2.1\Android\SampleApps\Native\KofaxMobileDemo- Android\res\values\styles.xml

And remove the @ symbol from the attributes so that they look like:

<style name="Animations.PopDownMenu.Right">
   <item name="android:windowEnterAnimation">@anim/grow_from_topright_to_bottomleft</item>
   <item name="android:windowExitAnimation">@anim/shrink_from_bottomleft_to_topright</item>
</style>

instead of:

<style name="Animations.PopDownMenu.Right">
    <item name="@android:windowEnterAnimation">@anim/grow_from_topright_to_bottomleft</item>
    <item name="@android:windowExitAnimation">@anim/shrink_from_bottomleft_to_topright</item>
</style>

This needs to be done for every attribute that has an @ symbol in front of it. There should be about 16. This issue will be addressed in the SDK 3.3 release.

 

Level of Complexity 

Moderate

 

Applies to  

Product Version Build Environment Hardware
Kofax Mobile Capture SDK 2.6
3.0
3.1
ALL Android  

References

N/A

 

 

Article # 3036907
  • Was this article helpful?