Summary of the reasons for the failure of Android to generate the java file corresponding to the remote service AIDL

When generating the JAVA file corresponding to AIDL, an empty file is always generated. Later, it was found that the aidl file contained Chinese comments. After removing the Chinese comments, the java file was successfully generated. After testing, sometimes some Chinese comments in the aidl file were not correct. It will cause the java file to fail to be generated, but the Chinese comments in the successfully generated java file are also garbled characters. After setting the IDE encoding and the file encoding to UTF8, the problem still cannot be solved. So it is better to use English for comments on aidl files.

Guess you like

Origin blog.csdn.net/weixin_44710164/article/details/106415268