有人可以给我一步一步的教程,告诉我如何在maven项目中使用google play服务?我添加了两个依赖项
<dependency>
<groupId>com.google.android.gms</groupId>
<artifactId>google-play-services</artifactId>
<version>4</version>
<type>apklib</type>
</dependency>
<dependency>
<groupId>com.google.android.gms</groupId>
<artifactId>google-play-services</artifactId>
<version>4</version>
<type>jar</type>
</dependency>
Run Code Online (Sandbox Code Playgroud)
apklib和jar出现在maven存储库中,但未生成com.google.android.gms.R类.
我收到NoClassDefFoundError.如何将com.google.android.gms放入gen文件夹?