1.首先注册聚合数据账号,下载相应的sdk
2.导入jar包和 so文件
配置Application,初始化sdk
<application //自己新建的application类 android:name="com.juhe.weather.WeatherApplication" android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > //新加的标签 <meta-data android:name="com.thinkland.juheapi.openid" android:value="JH1ff0a78ac5c2fe04d72153469c567e78" />
初始化代码
public class WeatherApplication extends Application{ @Override public void onCreate() { super.onCreate(); JuheSDKInitializer.initialize(getApplicationContext()); } }