Melting clouds IM SDK turn AndroidX
Recently, the company is going to develop a project IM Instant messaging , So we use instant messaging in the cloud SDK. But when it comes to integration, a problem is quickly discovered . Because our project is AndroidX Of , Integrate Module And then it turned out to be wrong . however , But we didn't find it on the official website of rongyun Androidx Version of SDK.
And then I check the information by myself , And then in gradle.properties Configuration added in , And then compile synchronously .
android.useAndroidX = true android.enableJetifier = true
The result is still wrong . Helplessly, I'm looking for the technical support of rongyun . Technical support students told , If the project turns out to be Androidx, You need to put android.useAndroidX and android.enableJetifier Set to false, Compile it synchronously , And then set it to true, And then compile it synchronously , That's right . I tried it myself, and the result is really good . This may be Android Studio One of the bug Well .
Finally, the code in the project will prompt the incompatible type of error , But it doesn't affect the compilation .
Technical support students also told us a simpler way , It is directly provided by using the official website of rongyun maven Remote dependency mode SDK There will be no incompatibility problems , It's OK to test yourself . If there are children's shoes with the same problem, they can be used directly maven Remote dependent library for integration .