본문 바로가기

Gradle

[Android] 현재 Android 최신 버전 상태 (2016.10.25) ## 버전 상태gradle : 2.2.1google-services : 3.0.0 maven-plugin : 1.5gradle-plugin : 0.13.0 compile sdk : 25build tool : 25.0.0 google support library : 25.0.0play service : 9.8.0 ## 최상위 build.gradlebuildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.1' classpath 'com.google.gms:google-services:3.0.0' // NOTE: Do not place your application dependencie.. 더보기
[Apache] Http 관련 라이브러리 사용시 주의사항!! Httpmime 라이브러리나 Apache 라이브러리를 사용할 때, Dependency 하는 라이브러리 들이 있습니다. 해당 라이브러리를 추가하지 않으면 실행 중 갑자기 클래스가 존재 하지 않다거나 어떻게 할 수 없는 오류가 발생 한다. 특히 아래와 같은... NoClassDefFoundError: Failed resolution of: Lorg/apache/http/xxx 아래 화면에서 빨간 네모 부분만 보아라. ## httpmime-4.3.5http://mvnrepository.com/artifact/org.apache.httpcomponents/httpmime/4.3.5 ## httpclient-4.3.5http://mvnrepository.com/artifact/org.apache.httpcompo.. 더보기
[Android] Https Setting with Volley 아래 소스 같이 newSslSocketFactory 함수를 넣어서 추가 하면 됩니다.인증서를 만드는 부분과 설정은 아래 내용을 참고 해주세요. public RequestQueue getRequestQueue() { if (mRequestQueue == null) { // getApplicationContext() is key, it keeps you from leaking the // Activity or BroadcastReceiver if someone passes one in. mRequestQueue = Volley.newRequestQueue(mCtx.getApplicationContext(), new HurlStack(null, newSslSocketFactory())); } return mR.. 더보기
[Android Studio] error occurred during initialization of vm Android Studio를 설치하고! 이제 개발해보자 하는 순간 Gradle 관련하여 Heap 메모리가 부족하다는 에러가 발생하여 불능 상태가 됩니다. VM을 만들수 없다는 건데요. Error:Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html Please read the fol.. 더보기