Configure eclipse to use my own Android SDK (framework.jar)

前端 未结 3 1337
你的背包
你的背包 2020-12-15 14:52

I made a custom framework.jar for my device. This new framework include a new API which I\'d like to use in my apps. Unfortunately, besides I included my own framework.jar i

3条回答
  •  孤街浪徒
    2020-12-15 15:34

    This is a good question! Your tip would be useful for Android Studio users as well, I guess.

    Just FYI, for IntelliJ users, you can also do this:

    1. Project Settings > Modules > click Dependencies tab > click "+" button > select "JARs or Directories"
    2. Find the .jar and choose it
    3. Move the .jar on top of the list of Dependencies (even before the SDK)
    4. Change the scope to 'Provided' (not 'Compile')

    By step 4, you can avoid making a huge .dex. (Your apk will not include the framework.jar.)

提交回复
热议问题