Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gengjiawen/migratetogradle
Convert your Eclipse project to Android Studio easily
https://github.com/gengjiawen/migratetogradle
Last synced: 16 days ago
JSON representation
Convert your Eclipse project to Android Studio easily
- Host: GitHub
- URL: https://github.com/gengjiawen/migratetogradle
- Owner: gengjiawen
- License: apache-2.0
- Created: 2016-02-24T14:11:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-18T15:26:44.000Z (over 8 years ago)
- Last Synced: 2024-12-08T18:58:30.461Z (21 days ago)
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Migrate Eclipse project to Gradle-Based project for Android Studio
========
This is a project targeting convert eclipse project to android studio project with easy.## What's it offering?
Handle those file from eclipse project to traditional gradle-based android studio project:
* Asset file
* So file
* Aidl file
* Manifest file and progurad rules## Prerequisite
### Tool
* Python installed
* Python IDE (optional)### Knowledge
* Basic Python knowledge
* Basic Gradle knowledge## How to use
Just to call this method:
```Python
start_migrate(eclipse_project_path, output_path)
```
The **output_path** will be created if not exist.### My eclipse project only has a main project
* Create a hello world Project using Android Studio
* Move generated file in app folder
* modify build.gradle:
change this line **apply plugin: 'com.android.library'** to **apply plugin: 'com.android.application'**### My eclipse project only has a main project and many library projects
* For main project, manage it like above
* For library project, Move generated Android Studio Project in root folder### Post work
Your still need to configure your app info (minSdkVersion something like this) in your main module **build.gradle**:
something like those:
```groovy
defaultConfig {
applicationId "your package name"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
```
and **signingConfigs** too.
For more information: check this post.
This guide helps me a lot when I am learning gradle.A lot more:
* adding all your projects in **settings.gradle**
* manage in your library dependency in libarary **build.gradle**
* You will still need a little effort to make your project compile in most casesIf your are a Chinese Reader, this article may help you .
## Notice
* This script is written in Python3
* Tested in Python 3.4 & 3.5## License
Copyright 2016 Daniel Geng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.