Giter Site home page Giter Site logo

Comments (6)

itsaky avatar itsaky commented on June 3, 2024 1

v33.0.3 of the build tools was removed from the Google components repository for some reason. You can upgrade (or downgrade) your build tools version to fix the error. You can also remove the buildToolsVersion from your module level build script to let Android Gradle Plugin automatically determine the build tools.

from androidide.

equin0X35 avatar equin0X35 commented on June 3, 2024

there is no buildToolsVersion in the script but it end up specifiying the buildToolsVersion to the latest version. Thanks, keep improving the app🎉🎉

from androidide.

Jisu-Woniu avatar Jisu-Woniu commented on June 3, 2024

So where and how to add the configuration? Can you specify it?

from androidide.

itsaky avatar itsaky commented on June 3, 2024

So where and how to add the configuration? Can you specify it?

You can specify the buildToolsVersion in your module-level build.gradle or build.gradle.kts file. It is usually the app/build.gradle[.kts] file.

In that module-level build script, you can specify the buildToolsVersion like the following :

android {
    ...
    buildToolsVersion("34.0.0")
}

from androidide.

Jisu-Woniu avatar Jisu-Woniu commented on June 3, 2024

There's a new error message:

Execution failed for task ':app:processDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform core-1.8.0.aar (androidx.core:core:1.8.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for AarResourcesCompilerTransform: /data/data/com.itsaky.androidide/files/home/.gradle/caches/transforms-3/ef7e1b98507d7d4bda90d03defcba420/transformed/core-1.8.0.
         > AAPT2 .androidide Daemon #0: Daemon startup failed
           This should not happen under normal circumstances, please file an issue if it does.
   > Failed to transform core-1.8.0.aar (androidx.core:core:1.8.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
      > Execution failed for AarResourcesCompilerTransform: /data/data/com.itsaky.androidide/files/home/.gradle/caches/transforms-3/ef7e1b98507d7d4bda90d03defcba420/transformed/core-1.8.0.
         > AAPT2 .androidide Daemon #0: Daemon startup failed
           This should not happen under normal circumstances, please file an issue if it does.

from androidide.

itsaky avatar itsaky commented on June 3, 2024

Check the build variant of AndroidIDE you're using. If your device's CPU architecture is arm64-v8a, you should only use arm64-v8a variant of the IDE.

If that's not the case, you can use the terminal to delete the aapt2 file located at $HOME/.androidide/aapt2, then restart AndroidIDE and check again. The IDE should automatically extract the appropriate aapt2 binary for you.

If this still doesn't solve the error, you can manually download and replace the aapt2 binary from the platform-tools repository.

from androidide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.