2016-08-02 169 views
0

我使用像这样的标签:安卓:“slideEdge”不再起作用

<?xml version="1.0" encoding="utf-8"?> 

<transitionSet 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    android:repeatMode="reverse" 
    android:transitionOrdering="together"> 

    <slide 
     app:slideEdge="top"/> 

    <changeBounds /> 
</transitionSet> 

当我建立我的项目,我得到以下错误:

Error:(9) No resource identifier found for attribute 'slideEdge' in package 'com.mypackage' 

此代码昨天的工作,但今天不起作用。

这是我的依赖关系。目标版本是SDK水平23分钟版本SDK级别19:

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:23.4.0' 
    compile 'com.google.maps.android:android-maps-utils:0.4+' 
    compile 'com.android.support:design:23.1.0' 
    compile 'com.google.android.gms:play-services:9.2.1' 
} 

回答

0

所以,整整一年后,我找到了解决办法:

重建和清理项目。

由于某些原因,android studio和gradle有时会因为什么是和不是你的项目的一部分而感到困惑。