-
Notifications
You must be signed in to change notification settings - Fork 117
/
Copy pathNotes-on-project-import-for-old-revision.txt
32 lines (23 loc) · 1.75 KB
/
Notes-on-project-import-for-old-revision.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
### Notes on project import for old revision (rev <= 115)
Import eclipse project to Android Studio (tested in Android Studio 1.1.0 with OpenJDK-7 v2.5.4)
* As Gradle-based projects (recommended)
1. git clone *repo-path* audio-analyzer-for-android
2. Copy the standard library project "android-support-v7-appcompat" to "audio-analyzer-for-android/android-support-v7-appcompat".
3. Modify "audio-analyzer-for-android/audioAnalyzer/project.properties", change "android.library.reference.2=../../../workspace/android-support-v7-appcompat" to "android.library.reference.2=../android-support-v7-appcompat".
4. Click "Import project" in the welcome dialog box of Android Studio.
5. Choose the sub-directory "audio-analyzer-for-android/audioAnalyzer".
6. Choose a name for Destination Directory. Next.
7. (check the two "Replace ... when possible") Finish. Then import-summary.txt will be generated.
You should have a workable copy now.
* Or, as IntelliJ "classic" projects
1. git clone *repo-path* audio-analyzer-for-android
2. Click "Import project" in the welcome dialog box of Android Studio.
3. Choose the directory "audio-analyzer-for-android".
4. Select "Create project from existing sources", Next.
5. Next.
6. Uncheck the directories that end with "gen", codes there are auto generated. Next.
7. (review libraries found) Next.
8. (review suggested module structure) Next.
9. (select project SDK) Next.
10. (review frameworks) Finish.
Now if you build the project, you will get an error "Cannot resolve symbol '@style/Theme.AppCompat'". This theme is in "android.support.v7.appcompat", I don't know how to import these values yet. Just choose another built-in theme will make it work. e.g. change to android:theme="@android:style/Theme.Black".