Error: source file is not valid UTF-8


(yuxinabc) #1

I create a new android project with c++ by android studio in the win7 , when compiling, report error: source file is not valid UTF-8 on a simple native-lib.cpp file, cmake and ndk are the latest, Has anyone encountered this problem?
Below is a partial error log:
E:\TestNdk\app\src\main\cpp\native-lib.cpp:1:7: error: source file is not valid UTF-8
b<U+0014>#e<U+001D><U+0000><U+0000><U+0000><U+0000><U+0000><U+0001>E-SafeNet<U+0000><U+0000><U+0000>LOCK<U+0000><U+000C><86><97>6<U+0018><8C>lD!<88>f

.<U+0011>C<U+001D>n<U+651D>A<86>C<U+0011>U`O<9F>