Programming/Error Solution
[Keras] AttributeError: 'Sequential' object has no attribute 'predict_classes'
tensorflow 버전 2.6이후로 predict_classes가 없기 때문에 발생하는 오류이다. 따라서 predict_classes 대신 다음 코드로 대체하면 된다. # 오류 발생 predicted = model.predict_classes(y_test, verbose=0) # 오류 해결 y_prob = model.predict(y_test, verbose=0) predicted = y_prob.argmax(axis=-1)
[Git] CRLF will be replaced by LF
git config --global core.autocrlf true input
![[Android] Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FdtfoYb%2FbtrNdQX0AYg%2FAAAAAAAAAAAAAAAAAAAAAAaox1p13k7mwD43Q_nzUfXDDgC9vR_lzz7vahvXQLwp%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DhUrBzzQ0CmZoUZ7lYpgnkrdcyjg%253D)
[Android] Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
Setting -> Build, Execution, Deployment -> Build Tools -> Gradle에서 JDK버전을 11로 수정
[Android] The minCompileSdk (31) specified in adependency's AAR metadata
Project 메뉴에서 Gradle Scripts -> build.gradle에서 compileSdkVersion과 targetSdkVersion를 31로 바꿔준뒤 sync해주면 해결 android { compileSdkVersion 31 defaultConfig { applicationId "com.example.myapplication" minSdkVersion 16 targetSdkVersion 31 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" }
[Android] Manifest merger failed : Apps targeting Android 12
AndroidManifest.xml에서 activity android:name에 android:exported="true"추가
[Android] uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library
Android SDK 11 버전에서 지원하지 않은 library 사용했기 때문에 발생하는 error app수준 build.gradle에서 minSdkVersion을 변경해주면된다. android { defaultConfig { applicationId "com.sgkang.seoultechrestaurant" minSdkVersion 19 // 이 부분을 error log에서 least XX(번호) 표기되어 있는 번호 이상으로 변경 targetSdkVersion 31 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } }