Android开发中的svn问题
使用Eclipse開發(fā)android,我并沒有將bin目錄加入到svn控制中.但每次編譯,都會將src目錄下的.svn和類包拷貝過去.所以在svn上總是有問題.
上網(wǎng)搜索了一下,原來是Eclipse在編譯的時候輸出路徑的問題:
Eclipse結(jié)合SVN進行版本控制,進行開發(fā)時,即使在TortoiseSVN中設(shè)置bin目錄設(shè)置為ignore目錄,但是Eclipse還是會將代碼目錄中的.svn拷貝到bin,造成界面上顯示bin發(fā)生變化,并且有可能影響項目編譯。解決方法見:
打開Eclipse中的Project->Properties->JavaBuildPath菜單,在右側(cè)面板中的"Source"選項卡,在Excluded中加入"**/.svn/**"。
不需要版本控制的目錄bin, gen。??
?
還有一個方法:
?
By default Eclipse compiles .java from source folders to .class in the?bin folder and copies all other files.?
You can configure a filter for which files not to copy in Window =>?
Preferences, Java => Compiler => Building => Output Folder.?
Then again the better way I think is to install the Subclipse plugin?
for integrating Subversion in Eclipse.?
As far as I know that should prevent such copying of the .svn folder?
as well.??
?
subeclipse:
http://subclipse.tigris.org/?
安裝:?
http://subclipse.tigris.org/update?
(Help->Software Updates->Find and Install-> Search for new features to install ->New Remote Site。URL中就輸入http://subclipse.tigris.org/update)?
?
再,如果android工程出現(xiàn)莫名其妙的R的問題等,可以刪除import android.R,然后執(zhí)行Project中的Clean.
?
?
轉(zhuǎn)載于:https://www.cnblogs.com/GarfieldTom/archive/2011/06/15/2081152.html
總結(jié)
以上是生活随笔為你收集整理的Android开发中的svn问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: 电动玩具的开发思路
 - 下一篇: Bugzilla集成LDAP的方法