본문 바로가기

IT개발일지/Android

(60)
[Android]Path.op() not supported 해결 Renderding Problem Path.op() not supported 위 사항은 Android Studio Gradle build 종속성과 관련된 문제입니다. implementation 'com.google.android.material:material:1.2.0-alpha05' -> implementation 'com.google.android.material:material:1.2.0-alpha02' 로 다운그레이드 해주시면 됩니다. implementation 'com.google.android.material:material:1.2.0-alpha06' 만약 다운그레이드 해도 적용되지 않을경우 SDK버전을 참고 하여 위버전으로 버전을 올려주셔도 해결하실수있습니다. ※파트너스 활동을 통해 일정액..
[Android]javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 오류해결 javax.net.ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:Trust anchor for certification path not found. E/CONSCRYPT: ------------------Untrusted chain: ---------------------- == Chain0 == Version: 3 AuthorityKeyIdentifier: 418301680148d8c5ec454ad8ae177e99bf99b05e1b8018d61e1 SubjectKeyIdentifier: 4160414260abb09202ab9c6951242867312418672d96a6e 안드로이드 개발중 갑자기 위와 같은 오류를 본적이 ..
[Android] did not contain a valid NDK and and couldn't be used did not contain a valid NDK and and couldn't be used 에러 안드로이드 개발 시 Execution failed for task , ':app:stripDebugDebugSymbols'. did not contain a valid NDK and and couldn't be used 위와 같은 에러가 발생할 경우가 있다. 원인 -> 안드로이드 프로젝트 내부의 NDK 경로가 바뀌어서 발생한 문제이다 해결방법 -> local.properties (SDK Location) -> ndk.dir= 설정된 NDK 경로를 바뀐 NDK 경로로 변경하여준다. * 대부분 아래와같은 경로로 되어있기 때문에 사용자 각각의 경로에 맞추어 세팅하면 된다. C\:\\Users\\HO(사용자컴퓨터..
[Android]For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// gi.. 안드로이드 오류 내용 For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b uild.gradle file. 번역 >>..
[Android] 외부 어플리케이션 실행하기 외부 어플리케이션 실행하기 관련 포스팅 1. 나의 핸드폰에 있는 어플리케이션 리스트를 가지고 와서 패키지명을 비교하여 어플리케이션 설치 유무를 판단한다. public boolean getPackageListCheck() { boolean isExist = false; PackageManager pkgMgr = getPackageManager(); List mApps; Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); mApps = pkgMgr.queryIntentActivities(mainIntent, 0); try { for (int i = 0; i < mApp..
[Android] 카카오 메세지 템플릿 만들기 (카카오링크,Custom) 이번 포스팅은 카카오 메세지 템플릿 만들기에 대하여 하겠습니다. 1. 준비과정 *아래 카카오 개발자 센터에 가서 어플리케이션 등록 및 준비과정을 진행합니다. https://developers.kakao.com/ Kakao Developers_ 더 나은 세상을 꿈꾸고 그것을 현실로 만드는 이를 위하여 카카오에서 앱 개발 플랫폼 서비스를 시작합니다. developers.kakao.com * 주의할점 위의 네이티브 앱키 정보는 꼭 안드로이드 스튜디오 내부에 저장해주세요! 저는 이렇게 저장하였습니다. 첫번째 값은 네이트브 앱키, 두번째 값 (kakao_scheme)의 경우 kakao뒤에 네이트브앱키값을 입력, 세번째 값은 그대로 두시면 됩니다^^ build.gradle(Module:app) 추가 implemen..
[Android] java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process 위와 같은 오류가 뜰경우 1. FireBaseApp 초기화 FireBase 함수를 호출하기전 아래와 같이 초기화를 해주어야 한다. FirebaseApp.initalizesApp(Context) 2. build.gradle (Module: app) 확인하기 아래와 같이 종속성이 추가되어 있는지 확인하여야한다. apply plugin: 'com.google.gms.google-services' ※파트너스 활동을 통해 일정액의 수수료를 제공받을 수 있음※
[Android]현재화면 캡처하기 함수 * 현재 보고있는 해당 Activity 의 화면을 캡처할 경우 아래와 같은 함수를 사용하면된다. public File ScreenShotActivity(View view){ view.setDrawingCacheEnabled(true); Bitmap screenBitmap = view.getDrawingCache(); String filename = "screenshot"+"현재시간milliseonds"+".png"; File file = new File(Environment.getExternalStorageDirectory()+"폴더명", filename); FileOutputStream os = null; try{ os = new FileOutputStream(file); screenBitmap.com..