본문 바로가기

모바일/Android30

DSL element 'DexOptions.incremental' is obsolete and will be removed at the end of 2018. DSL element 'DexOptions.incremental' is obsolete and will be removed at the end of 2018. http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html#com.android.build.gradle.internal.dsl.DexOptions dexOptions { javaMaxHeapSize "4g" jumboMode = true incremental false } https://stackoverflow.com/questions/32890868/whats-the-meaing-of-incremental-predexl.. 2018. 7. 30.
Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration?hl=ko 안드로이드 스튜디오 버전업으로 인한 Gradle변경사항 종속성 관련새 구성지원 중단된 구성동작implementationcompile컴파일 타임에는 모듈에 종속성을 사용할 수 .. 2018. 7. 30.
Unsupported Modules Detected: Compilation is not supported for following modules: xxxx. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project. 1. SVN에 구버전 프로젝트를 불러왔더니 해당 오류가 발생Unsupported Modules Detected: Compilation is not supported for following modules: xxxx. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.2. 해당 오류 검색https://stackoverflow.com/questions/28668252/android-studio-error-unsupported-modules-detected-compilation-is-not-supported 3.해결File -> invalidate Caches / Restart 2018. 7. 26.
Neither user 10080 nor current process has android.permission.READ_PHONE_STATE either user 10080 nor current process has android.permission.READ_PHONE_STATE. 예전에 겪었던거같은 문제인데 또 일어났다.키워드 : 런타임 퍼미션- Android 6.0(API 레벨 23)이상은 앱이 실행되는 중에 권한을 부여한다.https://developer.android.com/training/permissions/requesting 이지퍼미션 라이브러리를 이용하여 처리하였다.https://github.com/googlesamples/easypermissions build.gradle 파일에implementation 'pub.devrel:easypermissions:1.2.0'추가 설치당시 최신버전은 1.2.0 버전이다. 자세한 정보는 해.. 2018. 7. 25.
mipmap-anydpi-v26 adaptive icon 최신버전에서 앱을 설치하니 안드로이드 기본아이콘이 나왔다고한다 아답티브 아이콘?https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive 이생겼다고한다.이미지 어셋을 통해서 생성은 가능한거같은데 결국 어댑티브 아이콘 생성해서 해결함https://medium.com/@Yunkom/designing-adaptive-icons-59fc06c3ef47 https://github.com/Kogoro/android-adaptive-icons 정보를 확인해보면그냥 108px의 png파일로 구성되어있다 108pxx108px백그라운드 파일과 포그라운드파일 2개를 이용 안드로이드 스튜디오에서 마우스오른쪽 클릭Image Asset을 선택하.. 2018. 7. 25.
앱의 WebView SSL 오류 핸들러 알림 해결 방법 1. 원인앱이 내려감2. 확인앱의 WebView SSL 오류 핸들러 알림 해결 방법https://support.google.com/faqs/answer/70713873.검색 http://jason24k.tistory.com/8 4. 결과위의 블로그의 해결책에 따라 앱에 적용SslAlerDialog.java 생성 import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.webkit.SslErrorHandler; public class SslAlertDialog { private SslErrorHandler handler = null; private Alert.. 2018. 7. 24.
attr/colorError not found error when using com.android.support:recyclerview-v7:26.0.0-beta2 attr/colorError not found error when using com.android.support:recyclerview-v7:26.0.0-beta2 https://stackoverflow.com/questions/44643943/attr-colorerror-not-found-error-when-using-com-android-supportrecyclerview-v72 -> SDK 버전을 올린다 Build.gradlecompleSdkVersion 25-> compleSdkVersion 26 2018. 7. 20.
Cannot run program "svn" (in directory "C:\Program Files\Android\Android Studio"): CreateProcess error=2, 지정된 파일을 찾을 수 없습니다 Cannot run program "svn" (in directory "C:\Program Files\Android\Android Studio"): CreateProcess error=2, 지정된 파일을 찾을 수 없습니다 1. 생각해보니 SVN을 깔지 않았음 https://subversion.apache.org/https://www.visualsvn.com/downloads/Apache Subversion command line tools 을 받은후 설치하자현재 작성일 기준(2018-07-20) 1.10.0버전이 나왔다. 2. 환경변수 등록 다운로드받은 파일을 환경변수에 등록하면 끝C:\Apache-Subversion-1.10.0\bin커맨드창에 찍히는지 확인 3. 마지막으로 안드로이드 스튜디오의 세팅에.. 2018. 7. 20.
emulator -avd [] > adb devicesList of devices attached > emulator -list-avdsNexus_5X_API_27 > emulator -avd Nexux_5X_API_27 [756]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ..\emulator\lib64\qt\libCould not launch 'C:\Users\ - \..\emulator\qemu\windows-x86_64\qemu-system-i386.exe': No such file or directory SDK설치된 폴더의 tools로 이동후명령어 실행 > cd d://SDK/tools> emulator -avd Nexux_5X_A.. 2018. 5. 30.