集成Tinker遇到的问题

AndroidStudio的版本号为3.0.1,

在集成tinker时,报错:

Error:Could not get unknown property ‘apkVariantData’ for object of type com.android.build.gradle.in

解决方法:

1.将项目级别中的build.gradle里的

classpath 'com.android.tools.build:gradle:3.0.1'

改为:

classpath 'com.android.tools.build:gradle:2.3.3'
又报错:

Could not find method implementation() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

implementation改为compile


参考:

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

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

猜你喜欢

转载自blog.csdn.net/taambernk520/article/details/80204046