我正在尝试将 Appdynamics 添加到我的应用程序中,我正在执行这些步骤:https ://docs.appdynamics.com/display/PRO40/Instrument+an+Android+Application#InstrumentanAndroidApplication-ToaddtheAppDynamicsAndroidagentrepositorytoyourproject但毕竟我有错误:
Error:(15, 13) Failed to resolve: com.appdynamics:appdynamics-runtime:1.0
这就是我的 build.gradle(适用于所有项目)的样子:
buildscript {
configurations.classpath.resolutionStrategy.force('com.android.tools.build:gradle:1.2.3')
repositories {
maven { url uri("adeum-maven-repo") }
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3', 'com.appdynamics:appdynamics-gradle-plugin:2.0'
}
}
allprojects {
repositories {
mavenCentral()
}
}
和 build.gradle(来自 app 模块):
apply plugin: 'adeum'
repositories {
flatDir {
dirs 'lib'
}
maven {
url uri('adeum-maven-repo')
}
}
dependencies {
compile 'com.appdynamics:appdynamics-runtime:1.0'
并adeum-maven-repo
粘贴到项目中。知道我在做什么错吗?