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
}
}
相關文章
- 解決報錯error the @annotation pointcut expression is only supported at Java 5ErrorExpressJava
- 解決The given version [xx] is not supported, only version 1 to 10 is supported in this buildUI
- Restricting a Method to Class-Only o Instance-OnlyREST
- Cross origin requests are only supported for protocol schemes: http, data, chromROSProtocolSchemeHTTP
- cuda runtime error (801) : operation not supportedError
- Android Starting Window(Preview Window)AndroidView
- ERROR: NMO not setuid-root (Unix-only)ErrorUI
- [MetalKit]26-The-Model-I-O-framework-ModelI-O框架Framework框架
- [ERROR] Slave I/O: Replication event checksum Error_code: 1743Error
- [ERROR]SlaveI/O:errorconnectingtomasterErrorAST
- Tomcat啟動報錯:Error starting static Resources解決方法TomcatError
- BUG記錄-Sharing is only supported for boot loader classes because bootstrap classpath has been appendebootAPP
- ORA-00257: archiver error. Connect internal onlyHiveError
- Caused by: java.lang.IllegalStateException: Only single-level inheritance supported: XxxxServiceJavaException
- InnoDB: Error: space id and page n:o stored in the page?Error
- sloaris 出現“mount: I/O error”錯誤Error
- ERROR 2026 (HY000): SSL connection error: unknown error numberError
- O/S-Error: (OS 1326) 登入失敗: 未知的使用者名稱或錯誤密碼。Error密碼
- O/S-Error: (OS 33) The process cannot access the fileError
- 解決報錯 cuDNN error: CUDNN_STATUS_NOT_SUPPORTED. This error may appear if you passed in a non-contiguous input.DNNErrorAPP
- Error:map.xml could only be replicated to 0 nodes instead of minReplication (=1)ErrorXML
- ORA-00257: archiver error. Connect internal only, until freedHiveError
- Linux-x86_64 Error: 30: Read-only file systemLinuxError
- Android O 新特性 — NotificationAndroid
- Android @Field parameters can only be used with form encodingAndroidORMEncoding
- android-Building a Notification,Preserving Navigation when Starting an ActivityAndroidUINavigation
- ORA-00257:archiver error. Connect internal only,until freed.HiveError
- ORA-00257: archiver error. Connect internal only, until freed.HiveError
- error C2713: Only one form of exception handling permitted per functionErrorORMExceptionMITFunction
- [Modules/zlibmodule.o] Error 1錯誤解決IBMError
- error ntcontab.o of makefile ins_net_client.mkErrorclient
- NavigationBar(Android-O)NavigationAndroid
- Performance and Memory Improvements in ART(Android O)ORMAndroid
- Starting & Stopping SAP
- Starting HAL daemon:[FAILED]AI
- TNS-12537, TNS-12560, TNS-00507 Linux Error: 29: Illegal seek error When Starting the ListenerLinuxError
- ORA-00600: internal error code, arguments: [32695]Error
- Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.iOSError