Error: Invoke-customs are only supported starting with Android O (--min-api 26)
Android Studio SDK的版本升級到28以後 出現
Error: Invoke-customs are only supported starting with Android O (--min-api 26)
解決:新增compileOptions
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.xq.mybreakpointdownload"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
//新增
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
相關文章
- 解決The given version [xx] is not supported, only version 1 to 10 is supported in this buildUI
- cuda runtime error (801) : operation not supportedError
- Cross origin requests are only supported for protocol schemes: http, data, chromROSProtocolSchemeHTTP
- Caused by: java.lang.IllegalStateException: Only single-level inheritance supported: XxxxServiceJavaException
- Tomcat啟動報錯:Error starting static Resources解決方法TomcatError
- BUG記錄-Sharing is only supported for boot loader classes because bootstrap classpath has been appendebootAPP
- NavigationBar(Android-O)NavigationAndroid
- 解決報錯 cuDNN error: CUDNN_STATUS_NOT_SUPPORTED. This error may appear if you passed in a non-contiguous input.DNNErrorAPP
- ORA-00257:archiver error. Connect internal only,until freed.HiveError
- Android O 新特性 — NotificationAndroid
- Android O 適配詳細指南Android
- ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAError
- MySQL報錯Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table.MySqlPluginError
- ld: -pie can only be used when targeting iOS 4.2 or later clang: error: linker command failed with eiOSErrorAI
- Android targetSdkVersion 升級到 26 總結Android
- Android8.0適配-Only fullscreen opaque activities can request orientationAndroidOpaque
- 3.1.5.2 Starting an Instance, and Mounting and Opening a DatabaseDatabase
- org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.SQLExceptionErrorWhile
- 執行SQL發生錯誤!錯誤:disk I/O errorSQLError
- Android Studio Run專案出現Failure [INSTALL_FAILED_TEST_ONLY]AndroidAI
- Android Bugs—— Error:In declare-styleable FontFamilyFont, unable to find attribute android:fontAndroidError
- android 打包出現錯誤Error: ResourceNameAndroidError
- android studio Error:Unable to start the daemon process【轉】AndroidError
- 在 Android O 上用到 MediaStyle 的提醒功能AndroidAST
- Android O 8.0 以上 bitmap記憶體分配Android記憶體
- Android Q Beta 3 亮相 Google I/O'19AndroidGo
- Android O 讓安裝應用更安全Android
- Android外掛化的相容性(上):Android O的適配Android
- MEMORY_TARGET not supported on this system
- MySQL [ERROR] Slave I/O: Found a Gtid_log_event or Previous_gtids_log_eventMySqlError
- yarn add @fortawesome/Font Awesome-free 之後 報錯 EIO: i/o errorYarnError
- caffe安裝問題26_error use of undeclared identifier CV_LOAD_IMAGE_COLORErrorIDE
- Project facet Java version 1.8 is not supportedProjectJava
- KSQLException: The authentication type 10 is not supported.SQLException
- iOS 11 vs Android O:誰才是更讚的OS?iOSAndroid
- Android O, P 劉海屏及全面屏適配Android
- 一起看 I/O | Android Auto 更新一覽Android
- VirtualBox Host-only Adapter,Failed to create the host-only adapter 轉APTAI