Android Studio(I/O Preview) 使用問題記錄

來源:互聯網
上載者:User
  • win7_64 之前安裝過Eclipse 跑過android項目,這次下載官網的exe執行後 可以正常啟動

但還是在啟動sdk manager後 下載不了其他版本的sdk

方法是將 C:\Program Files (x86)\Android\android-studio\sdk\tools\lib 目錄下的SDK Manager.exe檔案 

拷貝到 C:\Program Files (x86)\Android\android-studio\sdk

  • 匯入原來eclipse的android項目,有些lib需要重新匯入一下...

  • 另外,有網友介紹了幾個概念:

android studio中的project相當於eclipse裡的workspace

android studio中的module相當於eclipse裡的project

建立project不能建立在已有的目錄下

已有的project中建立module即可

  •  一個問題是匯入原來eclipse建立好的項目 會有 java 非法字元: \65279 之類的錯誤

按照網上方法 將setting 項目裡面的java編譯器選擇為eclipse

之後還是有問題 貌似是因為IDEA的版本是12+ 需要用notepad把.java 轉換成 utf-8 without BOM 格式

之後就沒有什麼問題了 模擬器也能起來 而且Studio選擇模擬器的時候 是eclipse之前設定過的 不用重新設定了 

eclipse和studio都開的情況下 還能共用模擬器 比較巧合。。。

這個開發環境還好能繼承eclipse的快速鍵 要不然學習起來 又要適應很久。。。

  • 在ubuntu12.04 64  上安裝(之前eclipse環境已經搭好了,什麼32的庫之類的繁雜問題已經過去了) 出現一個下載不到gradle-1.6-bin.zip的問題

我在這個文章http://stackoverflow.com/questions/16585869/android-studio-error-installing-gradle

裡面找到一個方法

  1. Download Gradle directly from http://services.gradle.org/distributions/gradle-1.6-bin.zip
  2. Copy the contents of gradle-1.6 to \Android\android-studio\plugins\gradle
  3. Copy gradle.jar to \Android\android-studio\lib\
  4. Restart Android Studio

The gradle-1.6-bin.zip has
a folder gradle-1.6. I copied the contents of that folder (bin, init.d, lib, media) to the plugins\gradle folder in the Android Studio folder. Then I copied the plugins\gradle\lib\gradle.jar file to the \lib folder in the android-studio folder. – Nick

老外講的很詳細 按照步驟執行 

  •  這時建立項目又遇到一個問題

org.jetbrains.plugins.gradle.settings.GradleSetings cannot be cast to ...

然後看到檔案夾裡面已經建立了這個項目 就用import project重新覆蓋匯入 居然成功了。。。

  • win7 64: 又遇到adb串連的問題 後來查看您那個adb.exe *32 發現是迅雷裡面的。。。

C:\Program Files (x86)\Thunder Network\Thunder\Program 刪掉後重啟eclipse後正常了

什麼軟體都要帶個監測android手機的功能 殘害開發人員啊。。。

  • apk的簽名打包在Build-->Generate Signed APK中執行,另外這個Build裡面還有個rebuild project,和eclipse裡面的clean一個意思...

ps:

IDEA的自動格式化功能太差了吧 eclipse裡面的c+s+f格式化一下帥呆了。。。有這類格式化外掛程式推薦嗎?

這貨相當吃記憶體啊,相同的項目,javaw記憶體佔用約為用eclipse時的兩倍,把聯想E430卡爆了。。。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.