The version number of AndroidStudio is 3.0.1,
When integrating tinker, an error is reported:
Error:Could not get unknown property ‘apkVariantData’ for object of type com.android.build.gradle.in
Solution:
1. Put the build.gradle in the project level
classpath 'com.android.tools.build:gradle:3.0.1'
Change it to:
classpath 'com.android.tools.build:gradle:2.3.3'Error again:
Could not find method implementation() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Change implementation to compile
refer to: