android.jar (in Eclipse) update after making modification to Android framework?

StackOverflow https://stackoverflow.com/questions/13433811

  •  30-11-2021
  •  | 
  •  

سؤال

I modified Android framework, and added my own service into. Now I want to use new methods and service.

However, when I opened Eclipse to do application-level app development that calls my new methods and service, Eclipse cannot resolve them.

What should I do at this moment? Thank you,

هل كانت مفيدة؟

المحلول

You should compile it with these commands (in bash):

$ . build/envsetup.sh
$ lunch sdk-eng
$ make sdk

This process may take a little more than an hour.
If you need the Windows SDK use:

$ . build/envsetup.sh
$ lunch sdk-eng
$ make win_sdk

Now you will have to point Eclipse to the new SDK located at:

out/host/platform/sdk/android-sdk_eng.username_platform-x86/

Or something similiar.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top