Problems encountered when integrating Tinker

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:

https://blog.csdn.net/guangyu_sun/article/details/78182666

https://blog.csdn.net/qq_36317441/article/details/78415833

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325488967&siteId=291194637