Questions tagged «android-studio-3.6»


11
Android命令行工具sdkmanager始终显示:警告:无法创建设置
我使用android的新命令行工具,因为android的旧sdk-tools存储库不再可用。所以我更改了gitlab-ci以加载commandlintools。但是,当我尝试运行它时,出现以下错误: Warning: Could not create settings java.lang.IllegalArgumentException at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.<init>(SdkManagerCliSettings.java:428) at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.createSettings(SdkManagerCliSettings.java:152) at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.createSettings(SdkManagerCliSettings.java:134) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:57) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) 我已经尝试过手动执行这些命令,但是却遇到相同的错误。另外,如果我运行sdkmanager --version,会发生相同的错误。我的gitlab-ci看起来像: image: openjdk:9-jdk variables: ANDROID_COMPILE_SDK: "29" ANDROID_BUILD_TOOLS: "29.0.3" ANDROID_SDK_TOOLS: "6200805" before_script: - apt-get --quiet update --yes - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_SDK_TOOLS}_latest.zip - …


10
最新Studio 3.6中未生成数据绑定类
今天,我已经将Android Studio 3.5.3更新为3.6。现在,我无法生成任何数据绑定类。Android Studio会自行生成数据绑定-iml文件。 有没有人遇到这样的问题? Gradle wrapper.properties: distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip 项目级gradle文件: dependencies { classpath 'com.android.tools.build:gradle:3.5.3' } 应用程序级别gradle文件: apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' apply plugin: 'androidx.navigation.safeargs' android { dataBinding { enabled = true } // Using Lambda Expressions compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.