I reviewed several performance related monitoring libraries that are currently active in the community

I planned to make an access to Matrix in the project to see the situation, but I encountered problems in the first step of dependence

Finally found a colleague’s solution

I finally commented out maven.google.com in the code and replaced it with Maven2, which worked really well

        maven { url 'https://maven.aliyun.com/repository/public' }//jcenter
        maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }//gradle-plugin
        maven { url 'https://maven.aliyun.com/repository/central' }//central
        maven { url 'https://maven.aliyun.com/repository/google' }//google
        jcenter()
        mavenLocal()
        mavenCentral()
        maven { url 'https://dl.bintray.com/umsdk/release' }
// maven { url 'https://maven.google.com' }
        maven {url 'https://dl.google.com/dl/android/maven2/'}
Copy the code

Another detection scheme

< https://repo.maven.apache.org/maven2/com/tencent/matrix/matrix-resource-canary-android/0.8.1/matrix-resource-canary-and Roid - 0.8.1. Pom > \ < https://repo.maven.apache.org/maven2/com/tencent/matrix/matrix-gradle-plugin/0.8.1/matrix-gradle-plugin-0.8.1.pom >Copy the code

Using the matrix forward hazard, the next error came

What do I do

  • 1 upgrade gradle
  • 2 Healthy Matrix version (not verified)

This error indicates that the gradle version of the matrix plugin does not match the gradle version of the local project

Anyway, pull out the branch and start dry. Try the upgrade solution first

Using the matrix forward hazard, the next error came

The solution

Findbugs CheckStyle Comments code check items in the business first

Using the matrix forward hazard, the next error came

Download and give it a try

Using the matrix forward hazard, the next error came

Solution: Upgrade greendao plugin and rely on 3.2.2 upgrade to 3.3.0

Using the matrix forward hazard, the next error came

Try to solve:

We’ve been successful after dealing with a lot of mistakes

It is not safe now. I will run the project first to see if there is any problem when it runs

A line of log output judgment error, direct comment

In c++ it won’t and won’t. It’s probably best not to have CPP files directly in Android projects. You can load them with packaged so libraries or remote dependencies. This will speed up the compilation of this section and avoid some of the above problems caused by changes to the NDK or CMAKE versions, but this is the current engineering structure.

As for Matrix, as an ordinary user, I had to quit because I encountered so many problems only in the access level, but I can’t deny that Matrix is an excellent framework, because it is the whole platform of APM. Therefore, I can understand the following requirements for NDK related environment, but I still hope Tencent team can do better in version compatibility.