2016-08-02 168 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有時會因爲什麼是和不是你的項目的一部分而感到困惑。