본문 바로가기

전체 글

(68)
[Android]a failure occurred while executing com.android.build.gradle.internal.tasks.workers$actionfacade 에러 a failure occurred while executing com.android.build.gradle.internal.tasks.workers$actionfacade 에러가 발생할경우!! 1. invalidate cache and restart 실행하기 * 그래도 안된다면 import가 안되어있는 액티비티가 있는지 확인 하여 본다.
[Android]default activity not found 해결방법 에러내용 : default activity not found 위 Android Studio 에러의 경우 많은 해결방법이 나와있다. 1. General - Lanunch 항목에서 ... 클릭하여 제일 처음 진입 Activity를 설정해 주는 방법. 2. IDE Cashes 비우기 FIle - Invalidate Caches/Restart 하는방법 3. Build - Clean Project or Rebuild Project 하는 방법 하지만 필자의 경우 세가지 방법으로 모두 해결할 수가 없었다. ※ 이럴 경우 Manifests - AndroidManifest 로 진입하여 중복으로 등록이 된 Activity 파일을 찾아서 삭제하여 준다. 1시간 삽질 하였지만 고작 문제는 Activity 파일 중복문제.. 다..
[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..
[Android]얼굴분석 API - MicroSoft Face API 얼굴분석 API - MicroSoft Face API 참고 자료 https://docs.microsoft.com/ko-kr/azure/cognitive-services/face/tutorials/faceapiinjavaforandroidtutorial Face SDK 추가 1. Gradle 종속성 추가 build.gradle(Module: app) - com.microsoft.projectoxford:face:1.4.3에 대한 종속성을 추가 2. 적용할 액티비티에서 다음과 같이 import문을 추가해줍니다. import com.microsoft.projectoxford.face.*; import com.microsoft.projectoxford.face.contract.*; 3. 적용할 액티비티에서 다음..