The official Android SDK Plugin for Sensors Analytics
Gradle 编译环境(Android Studio)
(1)在 project 级别的 build.gradle 文件中添加 android-gradle-plugin 依赖:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
//添加 android-gradle-plugin 依赖
classpath 'com.sensorsdata.analytics.android:android-gradle-plugin2:3.2.4'
}
}
allprojects {
repositories {
jcenter()
}
}
(2)在 主 module 的 build.gradle 文件中添加 com.sensorsdata.analytics.android 插件、Sensors Analytics SDK 依赖:
apply plugin: 'com.android.application'
//添加 com.sensorsdata.analytics.android 插件
apply plugin: 'com.sensorsdata.analytics.android'
dependencies {
//添加 Sensors Analytics SDK 依赖
compile 'com.sensorsdata.analytics.android:SensorsAnalyticsSDK:4.0.8'
}
See our full manual
扫码加入神策数据开源社区 QQ 群 群号:785122381 |
扫码加入神策数据开源社区微信群 |
---|---|
扫码关注 神策数据开源社区 |
扫码关注 神策数据开源社区服务号 |
---|---|
《数据驱动:从方法到实践》 | 《Android 全埋点解决方案》 | 《iOS 全埋点解决方案》 |
---|---|---|
gradle_plugin_android_aspectjx
Copyright 2015-2020 Sensors Data Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.gradle_plugin_android_aspectjx