gpt4 book ai didi

java - Android在更新后仍然坏了

转载 作者:行者123 更新时间:2023-12-03 06:32:42 25 4
gpt4 key购买 nike

现在有两个星期,我无法在android studio中构建任何应用程序,这已经变得相当令人沮丧。

我收到以下错误:

  • 错误:找不到资源样式/Base.AlertDialog.AppCompat(又名com.almac.engineerapp:样式/Base.AlertDialog.AppCompat)。
  • 错误:java.util.concurrent.ExecutionException:java.util.concurrent.ExecutionException:com.android.tools.aapt2.Aapt2Exception:AAPT2错误:检查日志以了解详细信息

  • 我知道您可以在gradle.properties中执行appt2.enable = false,但这对我不起作用。

    我还确保我的构建工具为26.0.2或其他职位建议的类似工具,但此方法不起作用。

    我没有看到任何其他解决方案,尽管这很相似,但我不认为这是重复的帖子。

    build.gradle:
    apply plugin: 'com.android.application'
    android {
    compileSdkVersion 26
    buildToolsVersion '26.0.2'
    defaultConfig {
    applicationId "com.almac.engineerapp"
    minSdkVersion 25
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
    release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard- android.txt'), 'proguard-rules.pro'
    }
    }
    }

    dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.journeyapps:zxing-android-embedded:3.4.0'
    implementation 'com.android.volley:volley:1.1.0'

    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

    }

    有人可以帮忙吗

    最佳答案

    在决定降级并使用我相信Android 2之前的一个星期,我一直无法运行最新版本的Android Studio。我无法确定您的错误出了什么问题,请尝试使用较早的版本,如果可以,它不会给您带来很多问题!

    我已经在Android 2.x上开发应用程序大约3个月了,但是我还没有遇到任何真正的“与版本相关”的问题。

    祝好运,

    关于java - Android在更新后仍然坏了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48326506/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com