2015-01-11 77 views
0

我指的是文檔http://developer.android.com/tools/support-library/setup.html鏈接,但我不知道在哪裏放置依賴關係。在我的android manifest.xml中?我把代碼依賴關係

打開主模塊的build.gradle文件,並添加以下依賴於低級別的API使用操作欄

dependencies { 
    compile 'com.android.support:appcompat-v7:+' 
} 
+0

說明說:**打開你的主模塊的build.gradle文件** - 所以不,不在manifest.xml中。你在使用Android Studio嗎? – Adam

回答

1

你必須

compile 'com.android.support:appcompat-v7:+' 

裏面添加此僅此行現有的依賴阻止在應用程序文件夾內的build.gradle文件。