自从我将 android studio 升级到3.5. 我在谷歌上找不到任何结果来解决这个问题。我需要帮助。谢谢。
我打开了一个新项目,只添加了下面的 build.gradle 并且错误仍然出现。
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.firebase-perf'
apply plugin: 'im.getsocial'
getsocial {
appId "11111111"
}
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.app.ej"
minSdkVersion 16
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0' …Run Code Online (Sandbox Code Playgroud) Uint8List我想在使用以下命令将图像上传到 firebase 存储之前找出图像的大小
StorageUploadTask uploadTask = reference.putData(uint8ListImage);
Run Code Online (Sandbox Code Playgroud)
其中uint8ListImage是Uint8List。有没有办法知道 的大小Uint8List?