juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.13k stars 518 forks source link

android:attr/lStar not found on Unity export when building in production #845

Open Drarox opened 1 year ago

Drarox commented 1 year ago

Describe the bug I cannot build a production APK, the build fail with this error :

Execution failed for task ':flutter_unity_widget:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:/Users/yannick/projects/Recim/build/flutter_unity_widget/intermediates/merged_res/release/values/values.xml:181: AAPT: error: resource android:attr/lStar not found.

Whoever, in debug it works without any problems. I updated the kotlin and gradle version in both projects but I still cannot build in production. Has anyone already seen this error ?

Versions :

What I already tried:

pen110 commented 1 year ago

hi,Do you know how to deal with it, I have the same problem.

Rumanali786 commented 10 months ago

hii did you solve the problem? I am facing same issue.

Rumanali786 commented 10 months ago

Hi there! 👋

I noticed that the compile SDK version in the Flutter Unity package is not up to date. To ensure compatibility and take advantage of the latest features and improvements, I recommend making the following changes:

  1. In the Flutter Unity package:

    • Update the compile SDK version to the latest available. This can be done by modifying the build.gradle file in the Flutter Unity package and setting the compileSdkVersion to the latest SDK version.
  2. In your project:

    • Make sure to update the Flutter Unity package to the latest version that includes the updated compile SDK. You can do this by modifying the pubspec.yaml file in your Flutter project and specifying the updated package version.

By making these changes, you'll ensure that your project is using the most recent compile SDK version, which can help resolve compatibility issues and provide access to the latest Android features.