Migrate the project from eclipse to Android studio. There are several minor issues.
Question 1: Export from eclipse to the android studio project structure file. Because the project itself depends on another android project,
This causes the import to Android studio to fail after the export. If you encounter the same problem, you can remove the dependent project first.
Question 2: About encoding. First of all, in eclipse, our files are set to UTF-8 by default. There is no garbled problem for the migration to Android studio.
Some may encounter a problem: the Chinese characters in the Code (including the annotated Chinese characters) should jump out of error: gradle: Warning: Non- able characters encoded for euc_cn during compilation.
The code of this project and the idea code are useless. In addition, all Chinese characters are displayed normally, without being garbled.
Then, add a script to the build. gradle file based on the information:
// Set the Encoding
Tasks. withtype (compile ){
Options. Encoding = "UTF-8"
}