mogutt / TTAndroidClient

The android client of mogutt
http://tt.mogu.io/
742 stars 283 forks source link

IntelliJ IDEA 14.0.1 导入项目后编译失败详细情况 #82

Closed searover closed 9 years ago

searover commented 9 years ago

IntelliJ IDEA 14.0.1 导入项目后编译失败详细情况

1, File -> Import Project. 2, Choose the TTAndroidClient folder, click ok button.

image

3, Pop up an import project option window, the "Import project from external model" radio button was selected by default and so do the "Eclipse" option, so just click next button.

image

4, Some directory folder selection, just by default and click next.

image

5, Here comes two projects, select all of them and click next.

image

6, This step, I choose the Android API 17 Platform, with jdk 1.8, the newest version, and click finish button.

image

7, Then a window popup , ask me weather to reuse the existing mgimlibs.iml file or not, click Yes

image

8, Confirm to add dependencies

image

9, So far, two projects are load correctly, looks everything goes well.

image

10, But when I click the "Make Project" button, some error appeared.

image

11, Just take a look at the error, we know that there are third party jar were not referenced automatically,

image

12, So I open the File --> Project Structure menu, choose mgimlibs module, on the right side, click the + button to add external jars.

image

13, Then choose the right jar in the libs folder

image

14, But, when I click Apply button to apply this change, an error accurs all of a sudden,

image

15, I dont't understand this error message, it is strange, am I contains something that is already belongs to the project ?

Is there any wrong operation above? or any suggestions, recommendations,directions, and instructions, thank you very much and happy new year haha.

rednels commented 9 years ago

Before you import the project, delete the gen dir. OR You can open it directly using IDEA instead of import.

searover commented 9 years ago

ok,thanks, i will try it later.