Android Studio project migration summary, androidstudio
Recently, I tried to use Android Studio. Some functions are far away from eclipse, but I am not very familiar with it yet. I would like to summarize my experiences in migrating projects over the past two days.
The project migration mentioned here refers to the migration from a project in the eclipse environment to android studio. android studio provides the option to import a project from eclipse, it should be easy for everyone to find. No texture is needed here. If your project does not contain any third-party libraries, android studio can directly convert your project into a successful one without any additional modifications. If your project contains a third-party library, you need to modify it.
Here we will talk about third-party dependent libraries, which are generally divided into two types: resource files, resource files, and jar files, put it in the libs folder, and the former needs to be introduced in the form of a library project. (The "is Library" option should be familiar with kids shoes developed in eclipse ).
According to the above statement, let's make a small summary. During the project migration of android studio, the situation is divided into the following types:
1. No third-party dependent libraries: import directly
2. For "third-party dependent libraries without resource files": directly put the jar package in the libs folder or use gradle.
3. For "third-party dependent libraries containing resource files": import these libraries as modules or use gradle.
When using gradle, the author of the dependent library must upload the code to jcenter or maven. Here we will talk about how to import the module.
1. Right-click the Project -- Project Structue
2. Click "+" to add a module.
3. Go to dependency in 'app' and set the introduced module as a dependent library.
My minor problems:
After all the dependent packages of the supported libraries are completed, the error "duplicated class" is still reported. It is found that the internal classes of the partial classification are extracted from android studio, delete it.