한 프로젝트에서 이클립스에서 작업하고 있습니다. admob 네이티브 광고에서 문제가 발생하여 Google Play 서비스를 업데이트하려고 시도 했으므로 sdk 폴더에서 lib 프로젝트를 사용할 수 없음을 표시했습니다. 이 폴더에는 샘플 및 문서 폴더 만 포함됩니다. 나는 오래된 라이브러리를 가지고 있지만 admob과는 작동하지 않는다. Google Play 서비스 수정 버전 30의 라이브러리 프로젝트 또는 jar 파일을 얻으려면 어떻게해야합니까? 감사Google Play 서비스 문제
0
A
답변
0
Setting Up Google Play Services
구글 앱에 사용할 수있는 서비스 API를 재생 만들려면 :
복사 라이브러리 프로젝트/엑스트라/구글/google_play_services/libproject/구글 플레이-services_lib에서/위치가 Android 앱 프로젝트를 유지 관리하는 곳입니다. Eclipse 프로젝트로 라이브러리 프로젝트를 가져 오십시오. 파일> 가져 오기를 클릭하고 Android> 기존 Android 코드를 작업 공간으로 선택한 다음 가져올 라이브러리 프로젝트의 복사본을 찾습니다. 앱 프로젝트에서 Google Play 서비스 라이브러리 프로젝트를 참조하십시오. 이를 수행하는 방법에 대한 자세한 내용은 Eclipse 용 라이브러리 프로젝트 참조를 참조하십시오.
참고 : 개발 작업 공간에 복사 한 라이브러리 사본을 참조해야합니다. Android SDK 디렉토리에서 직접 라이브러리를 참조하면 안됩니다. 당신은 구글, 앱 프로젝트에 대한 종속성으로 서비스 라이브러리를 재생 앱의 매니페스트 파일을 열고 요소의 자식으로 다음과 같은 태그를 추가 추가 한 후 :
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
을 설정하면 사용자의 프로젝트를 사용하여 Google Play 서비스 API로 기능을 개발할 수 있습니다.
멀리 필요한 클래스를 제거에서 ProGuard를 방지하려면 ProGuard에서 예외를 생성 의 /proguard-project.txt 파일에 다음 줄을 추가
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}
-keepnames class * implements android.os.Parcelable
-keepclassmembers class * implements android.os.Parcelable {
public static final *** CREATOR;
}
-keep @interface android.support.annotation.Keep
-keep @android.support.annotation.Keep class *
-keepclasseswithmembers class * {
@android.support.annotation.Keep <fields>;
}
-keepclasseswithmembers class * {
@android.support.annotation.Keep <methods>;
}
-keep @interface com.google.android.gms.common.annotation.KeepName
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}
-keep @interface com.google.android.gms.common.util.DynamiteApi
-keep public @com.google.android.gms.common.util.DynamiteApi class * {
public <fields>;
public <methods>;
}
-dontwarn android.security.NetworkSecurityPolicy
관련 문제
- 1. Google Play 서비스 : 광고로드 문제
- 2. google play 서비스 버전 문제 실제 기기
- 3. Google Play 서비스 통계
- 4. Google Play 서비스 업데이트
- 5. Google Play 서비스 버전
- 6. Google Play 게임 서비스
- 7. Google Play 게임 서비스
- 8. Google Play 서비스 설치
- 9. Google Play 서비스?
- 10. Play 서비스 5.2.08 문제
- 11. Play 스토어가없는 Android Google Play 서비스
- 12. Google Play 서비스 소스 코드
- 13. Android의 Google Play 서비스 라이브러리
- 14. Google Play 서비스 상태 3.1
- 15. Android PlayGuard가있는 Google Play 서비스
- 16. Google Play 서비스 디버그 키
- 17. Google Play 서비스 로그인 오류 :
- 18. Android google play 위치 서비스
- 19. AndEngine 광고와 Google Play 서비스
- 20. Google Play 서비스 부분 통합
- 21. Google Play 게임 서비스 팝업보기
- 22. IDE없이 Google Play 서비스 추가
- 23. 업데이트 Google Play 서비스 - Android
- 24. Google Play 게임 서비스 순위
- 25. Google Play 게임 서비스 설정
- 26. Google Play 서비스 Unity3d 플러그인
- 27. Google Play 게임 서비스 업적로드
- 28. Android Wear의 Google Play 서비스
- 29. 모듈로 다른 Google Play 서비스
- 30. Google Play 서비스 업데이트 오류