AS gradle version upgrade 3.3.2-3.5.2

One, the problem

After the Android Studio gradle version was upgraded to 3.5.2, it was found that the strcmp function reported an error, the function did not perform null processing, and the comparison object was the signature MD5 value of the current APP.

Later, I found that when using the green arrow run to install directly to the mobile phone, an error would be reported, but after using assemble to package the apk, using adb to install, no error would be reported, indicating that the apk was not signed when using the run installation.

Two, solve

Just do the null processing for the strcmp method.

 

Note: Before using the strcmp function, it is necessary to judge the passing parameters.

Guess you like

Origin blog.csdn.net/wishxiaozhu/article/details/104414662