Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Report: "Unknown Resource Type 'macro'" Error in CodeAssist IDE #754

Open
Ravii0z opened this issue Feb 23, 2025 · 0 comments
Open

Comments

@Ravii0z
Copy link

Ravii0z commented Feb 23, 2025

Dear Developer,

I am encountering an issue in the CodeAssist IDE while building an Android project. The error message states:

ERROR: unknown resource type 'macro'.
[values.xml:8790]

Issue Details:

  1. The error appears in values.xml at multiple lines.
  2. The issue seems to be related to the Material 3 implementation in the project.
  3. It is possible that the IDE does not fully support Material 3 or there are missing dependencies causing conflicts.
  4. The Android Gradle Plugin (AGP) version in the IDE might be outdated, leading to incompatibility with the latest Material 3 libraries.
  5. Incorrect or unsupported syntax in values.xml could also be a contributing factor.

Steps to Reproduce:

  1. Create a new Android project using Material 3.
  2. Define themes and styles using Material 3 components.
  3. Add dependencies for Material 3 in build.gradle:
    implementation 'androidx.compose.material3:material3:1.1.2'
    implementation 'com.google.android.material:material:1.11.0'
  4. Build the project.
  5. The build fails with the "unknown resource type 'macro'" error in values.xml.

Possible Causes & Solutions:

  • Cause: The IDE might not fully support Material 3.
    • Solution: Update CodeAssist IDE to support the latest Android Gradle Plugin and Material 3.
  • Cause: The Gradle version used in the IDE might be outdated.
    • Solution: Ensure that the IDE includes support for the latest Gradle versions.
  • Cause: The values.xml file might contain unsupported attributes or syntax.
    • Solution: Verify and correct any unsupported XML attributes.

Temporary Workaround:

  • Switching to Material 2 by using Theme.MaterialComponents instead of Theme.Material3.
  • Downgrading com.google.android.material to an older stable version (e.g., 1.9.0).
  • Checking if the project builds correctly in Android Studio to confirm if it's an IDE-specific issue.

Request for Fix:

It would be helpful if CodeAssist IDE could:

  1. Provide full support for Material 3.
  2. Ensure compatibility with the latest Android Gradle Plugin.
  3. Improve error messages to help identify the root cause.
  4. Fix the "unknown resource type 'macro'" issue in values.xml.

I appreciate your time in reviewing this issue and look forward to a resolution in a future update.

Best regards,
[Ravi🙂🪽]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant