안드로이드 다음 코드에서 간헐적으로 예외가 발생하며 앱이 다운됐다. 발생한 예외는 java.lang.exceptionininitializererror 인데 try ~ catch(Exception)으로 잡히지 않았다. mGoogleDriveService = new Drive.Builder( new NetHttpTransport(), new GsonFactory(), credential) .setApplicationName("Drive API Migration") .build(); java.lang.ExceptionInInitializerError at com.google.api.services.drive.Drive.(Drive.java:44) at com.google.api.services.drive.Dr..
android/문제해결 검색 결과
다음 adapterPosition 사용부가 deprecated 되었다. inner class ViewHolder(v: View) : RecyclerView.ViewHolder(v), View.OnClickListener { var mTextView: TextView = v.file_name init { v.setOnClickListener(this) } override fun onClick(v: View) { recyclerViewItemClickListener.clickOnItem(mDataSet[this.adapterPosition]) } } 구글링, 다음과 같이 bindingAdaterPostion을 사용하여 해결하였다. bindingAdapterPosition과 absoluteAdapterPost..
안드로이드 Java 프로젝트에 코틀린 클래스를 넣었더니, 다음 에러가 발생했다. Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15 ... 구글링, build.gradle 에 ext.kotlin_version = '1.3.50' => ext.kotlin_version = '1.6.0' 로 변경하니 해결됐다. 참고: https://stackoverflow.com/questions/67699823/module-was-compiled-with-an-incompatible-version-of-kotlin-t..
최근댓글