# sa-sdk-android-plugin2 **Repository Path**: yang_chang_wei/sa-sdk-android-plugin2 ## Basic Information - **Project Name**: sa-sdk-android-plugin2 - **Description**: 神策数据官方 Android 埋点插件,用于 Android 端的数据采集。通过使用字节码插桩(ASM)的技术实现 Android 端的全埋点(无埋点、无码埋点、无痕埋点、自动埋点)。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 2 - **Created**: 2020-06-01 - **Last Updated**: 2022-06-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![logo](https://opensource.sensorsdata.cn/wp-content/uploads/logo.png) # sa-sdk-android-plugin2 The official Android SDK Plugin for Sensors Analytics ## 快速集成 __Gradle 编译环境(Android Studio)__ (1)在 **project** 级别的 build.gradle 文件中添加 android-gradle-plugin 依赖: ```android 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 依赖: ```android 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' } ``` ## To Learn More See our [full manual](http://www.sensorsdata.cn/manual/android_sdk.html) ## 讨论 | 扫码加入神策数据开源社区 QQ 群
群号:785122381 | 扫码加入神策数据开源社区微信群 | | ------ | ------ | |![ QQ 讨论群](https://opensource.sensorsdata.cn/wp-content/uploads/ContentCommonPic_1.png) | ![ 微信讨论群 ](https://opensource.sensorsdata.cn/wp-content/uploads/ContentCommonPic_2.png) | ## 公众号 | 扫码关注
神策数据开源社区 | 扫码关注
神策数据开源社区服务号 | | ------ | ------ | |![ 微信订阅号 ](https://opensource.sensorsdata.cn/wp-content/uploads/ContentCommonPic_3.png) | ![ 微信服务号 ](https://opensource.sensorsdata.cn/wp-content/uploads/ContentCommonPic_4.png) | ## 新书推荐 | 《数据驱动:从方法到实践》 | 《Android 全埋点解决方案》 | 《iOS 全埋点解决方案》 | ------ | ------ | ------ | | [![《数据驱动:从方法到实践》](https://opensource.sensorsdata.cn/wp-content/uploads/data_driven_book_1.jpg)](https://item.jd.com/12322322.html) | [![《Android 全埋点解决方案》](https://opensource.sensorsdata.cn/wp-content/uploads/Android-全埋点thumbnail_1.png)](https://item.jd.com/12574672.html) | [![《iOS 全埋点解决方案》](https://opensource.sensorsdata.cn/wp-content/uploads/iOS-全埋点thumbnail_1.png)](https://item.jd.com/12867068.html) ## 感谢 [hugo](https://github.com/JakeWharton/hugo) [gradle_plugin_android_aspectjx](https://github.com/HujiangTechnology/gradle_plugin_android_aspectjx) [gradle-android-aspectj-plugin](https://github.com/uPhyca/gradle-android-aspectj-plugin) [tracklytics](https://github.com/orhanobut/tracklytics) ## License 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