How to update an old Android project for updates in the new Android SDK tools?

I used to use an older version of Android SDK Tools , and now I switched to a new computer, set up a new development environment from scratch and copied and imported projects from a previous PC. Now, if I create a new project in the current environment, I notice that the SDK creates the proguard.cfg file in the root folder of the project, which I did not see for any of my previous projects in the previous setting. I was looking for using proguard.cfg and that sounds useful. But this proguard.cfg file is missing in the projects that I created in the previous setup.

And it also makes me think that the new SDK tools may also have some new updates and / or additions to features that I could use. I have to mention that the target platform I use is the same - Android 2.2, but the β€œAndroid SDK Tools” have been updated. In addition, I am not getting any errors yet, but, as I said, I want to use updates for the SDK tools (and not for updates to the target platform).

So my question is: is there a way to guarantee that I will not miss anything updated by the Android SDK, for example, proguard.cfg, or will I need to identify such things and manually add the file, and similarly for any other things that have improved in new tools SDK

+4
source share
1 answer

The Android SDK tools directory has an android executable. You can use this to update the project by passing the path to the directory containing AndroidManifest.xml:

 $ANDROID_SDK/tools/android update project -p /path/to/my-android-project 

This is registered on the SDK website under Project Management from the Command Line> Project Update.

The Eclipse plugin does not do this automatically, and there is no equivalent section in Project Management from Eclipse using ADT , so it looks like you should use the command line tool.

+4
source

Source: https://habr.com/ru/post/1387007/


All Articles