Eclipse import Android2.2 Email source code

來源:互聯網
上載者:User

轉自http://babyfs.wordpress.com/2010/09/03/android%E9%9B%9C%E8%A8%98/

 

Eclipse import Android2.2 Email source code
(//android/packages/apps/Email/),build failed,一直有compiler
error,花了兩天的時間,終於搞定

  1. the
    import android.provider.Calendar cannot be resolved
    - root cause :
    android.provider.Calendar是Android internal
    package,沒有放在sdk裡,要去找出這個包含Calendar的jar檔(/out/target/common/obj
    /JAVA_LIBRARIES/framework_intermediates/classes.jar),然後在Eclipse  

    1. Right-Click your project to open properties
    2. Java Build Path->Add Library->User Library->User
      Libraries->New
    3. Made up a name & check the “System Library” option
    4. Select the library you created->Add JARs
    5. Make sure all JARs you need are added to the project, and click OK
  2. mContext cannot be resolved
    – root cause: Android release的sdk和source
    code不mapping,必需自行用Linux重新build過Android.jar,from device directory, 『make
    sdk』 will generate android.jar to
    ./out/host/linux-x86/sdk/android-sdk_eng.user_linux-x86/,接著用新build的
    Android.jar換掉原本的,就大功告成了
  3. source code not found problem
    – 在trace Android source code,無法看到source的問題,可以把整個source tree,放到
    android-sdk-windows/platforms/android-8/sources/下,重build workspace即可解決
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.