Search Unity

Question This feature requires ASM7

Discussion in 'Android' started by Shadowing, Nov 13, 2022.

Thread Status:
Not open for further replies.
  1. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,648
    This feature requires ASM7

    I can't get rid of this error for Android. can' t do builds now because of this.
     
  2. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,963
    Some devs reported it went off after a restart or clearing cache if any.
    Try toggling the checkmarks in External Tools settings for Android and Gradle entries.
     
    YoungLee likes this.
  3. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,648
    Oh thanks man. It actually stopped when I changed to sdk 33 from 30
    Thanks for the response i'll try that incase I have to go back to 30 sdk.
     
  4. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,648
    What cache were you referring too?
    Well this error is back again.

    Tried to do a restart
    Tried unchecking and checking back boxes in external tools
     
    imrankarimi009 likes this.
  5. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,648
    Ended up fixing it by going back to API 30 lol.
    Probably why doing api 33 fixed it last time.

    Guess this needs to be reported to unity
     
  6. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,963
    Update: API 33 is required from August 2023!
    Obsolete ->
    Set API 32 as its valid for next 2 years.
     
    Last edited: Apr 2, 2023
    omersariyer13 likes this.
  7. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,648
    When I try 32 i think it told me I don't have api 32.
    I'm not sure how to download those api's, I used to do it in android studio but now unity downloads its own copy to use. So not sure how to do that now.
     
  8. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,963
    Usually it will prompt to update the sdk if it doesn't exist. If it fails to do so, try manual approach.
    1. Go to system's android sdk/platforms folder and copy android-32 folder
    2. Paste it in unity's Android sdk/platforms folder

    Similarly copy build-tools/30.0.2 and paste in unity's android sdk. Note it should be 30.0.2 as above it unity won't support until recent versions.
     
  9. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,648
    So now I'm doing a build with api 30 and then a build with api 33.
    Only way atm i figured out how to get rid of this error.

    I dont think doing a build at api 32 would fix this problem.
     
  10. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,648
    Ya at least there is a work around. Any chance you can do a bug report on it. I'm just so busy atm. Already engaged in several atm
     
  11. CyberModeSoftware

    CyberModeSoftware

    Joined:
    Jan 31, 2019
    Posts:
    2
    I have the same problem and even at this moment is not solved , I tried all methods that I find on Internet and nothing
     
  12. Miryum

    Miryum

    Joined:
    Jul 25, 2021
    Posts:
    11
    I faced this error after I imported Admob plugin v7-3-1. I closed the project and deleted all folders except Assets and ProjectSettings. I opened the project and built it without a problem.
    @CyberModeSoftware
     
    twicejiggled likes this.
  13. MoHortus

    MoHortus

    Joined:
    Sep 20, 2020
    Posts:
    5
    Robotec555 likes this.
  14. boypipz321

    boypipz321

    Joined:
    Jan 27, 2018
    Posts:
    7
  15. boypipz321

    boypipz321

    Joined:
    Jan 27, 2018
    Posts:
    7
    dis-s likes this.
  16. esatkoseoglu

    esatkoseoglu

    Joined:
    Jan 18, 2022
    Posts:
    3
    I got same error with latest API level 33 for target api level.
    Workaround steps:
    * I built package for target api level with API 30 first (API 32 is not working, it is needed to install, but I prefer api 30).
    * If this build is success, build for target api level with value API 33, and it works by this way.

    fyi
     
  17. Miryum

    Miryum

    Joined:
    Jul 25, 2021
    Posts:
    11
    Try to increase Min API Level to Android 7.0 (API 24) this worked for me.
     
    farazk86 and twatz like this.
  18. YoungLee

    YoungLee

    Joined:
    Apr 15, 2015
    Posts:
    1
    It usually occurs when you remove a package but new incremental build system didn't notice it.
    I solved it by use "Clean Build" as instructed below.

    https://docs.unity3d.com/2021.3/Documentation/Manual/incremental-build-pipeline.html
    ======================================
    Creating non-incremental builds
    In some scenarios, it can be useful or necessary to create builds that don’t use the incremental build pipeline.

    To create a clean, non-incremental, build:

    1. Open the Build Settings window.
    2. Next to the Build button, select the drop-down.
    3. Select Clean Build
    ======================================
     
  19. stickylab

    stickylab

    Joined:
    Mar 16, 2016
    Posts:
    92
    will someplugin will not wwork ???? play game service , admob ,,,,and should i do clean build everytime??
     
  20. dis-s

    dis-s

    Joined:
    Mar 25, 2013
    Posts:
    48
  21. One_Hape

    One_Hape

    Joined:
    Jun 17, 2019
    Posts:
    1
    My unity version is 2020.3.33f1 wihtout CleanBuild option.I try to clean the folder Library and change gradle version to 6.9.3, but they didn't work.How can I reslove it?
     
  22. Struggle2dev

    Struggle2dev

    Joined:
    Feb 6, 2023
    Posts:
    2
    Hey, I have been dealing with this issue for over a week now & tried everything to fix it. Tried clean builds, tried changing the minimum & target API, different Admob & gradle versions. Nothing seems to work.

    I managed to randomly get a build working once, thought I fixed it but when I came back to the project a few days later the error just appeared again every time I tried building. This is happening in multiple projects.

    The only real fix I have found is removing Admob from my games completely. I'd rather not but at this point I might have to because nothing else is working. Any help or work around would be appreciated...
     
  23. jowitt_msft

    jowitt_msft

    Joined:
    Feb 11, 2016
    Posts:
    16
    I was bogged down with this this week. We have gradle file templates configured and in the Custom Base Gradle Template I had to upgrade the gradle tools version to at least 4.1.0, e.g.

    classpath 'com.android.tools.build:gradle:4.1.0'

    This unfortunately resulted in an error becase gradle 6.1.1 used by Unity 2021.3 by default is too old, at least 6.5 is needed by the error logs. I updated to 6.9.3 in the Unity Preferences->External Tools and the error went away for me.
     
    Ispodwill likes this.
  24. Struggle2dev

    Struggle2dev

    Joined:
    Feb 6, 2023
    Posts:
    2
    Thank you!! After trying what you suggested it let's me build again! I tried changing the gradle previously and it didn't work but setting custom base gradle and changing the class path too seemed to do the trick! I love you <3
     
    jowitt_msft likes this.
  25. jowitt_msft

    jowitt_msft

    Joined:
    Feb 11, 2016
    Posts:
    16
  26. jowitt_msft

    jowitt_msft

    Joined:
    Feb 11, 2016
    Posts:
    16
    Would be an amazing Android support feature if we could specify the distribution url as is often done with gradle wrapper right in the override box we have now. Even better would be per project overrides...

    Example distribution url, note there are many options for version and 'bin' alternates available.
    - distributionUrl = "https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip"'
     
  27. MoHortus

    MoHortus

    Joined:
    Sep 20, 2020
    Posts:
    5
    nice, this works also for me, more handy workaround from previous one, thanks!
    but yeah it seems it has to be 6.9.3.
    Tried also some other workaround (https://github.com/googleads/googleads-mobile-unity/issues/2390#issuecomment-1420026481), so with the latest release 7.6.1. It did not work.
     
  28. restush96

    restush96

    Joined:
    May 28, 2019
    Posts:
    137
    I have fix the error by these step:
    - Change to API Level 33 and Build
    - Change back to your original API Level
    - Close Unity & reopen Unity
    - Now use Clean Build



     
  29. kollias

    kollias

    Joined:
    Oct 30, 2018
    Posts:
    3
    any ideas how to fix this issue at the cloud build server?
     
  30. unity_EF10D58E7EA9ED42741F

    unity_EF10D58E7EA9ED42741F

    Joined:
    Feb 1, 2023
    Posts:
    2
    This worked for me. As I was using the API 32, I changed it to 32, build, then back to 21 and the build worked as expected.
     
    alexr1221 likes this.
  31. WaqasMiczon

    WaqasMiczon

    Joined:
    May 19, 2022
    Posts:
    1
    make sure icon is not compressed.
     
  32. Zarkend

    Zarkend

    Joined:
    May 11, 2016
    Posts:
    28
    Closing Unity and opening again did the trick for me. I also tried some things before that:

    • Checking and unchecking things in External Tools upload_2023-7-27_9-56-5.png
    • Forcing resolve upload_2023-7-27_9-56-45.png
     

    Attached Files:

  33. thanhduongzt

    thanhduongzt

    Joined:
    Jul 18, 2021
    Posts:
    1
    With Google Mobile Ads Unity plugin version : 8.3.0
    • Delete resolved libraries : Assets> External Dependancy Manager > Android resolver > Delete resolve libs
    • in player settings > pulishing settings uncheck all the one under build
    • Download gradle 6.9: https://gradle.org/releases/
    • Prefrences > external tools > uncheck gradle and browse to the installed gradle
    • Assets> External Dependancy Manager > Android resolver > Force resolve
    • then player settings > pulishing settings check all the ones you uncheck plus Custom Base Gradle Template
    • edit the file Asstes\Plugins\Android\baseProjectTemplate.gradle
    • change target api level to 33
    • change the line that looks like classpath 'com.android.tools.build:gradle:yourversion' to classpath 'com.android.tools.build:gradle:4.2.0'
     
    Thanhviper1234 and Zarkend like this.
  34. jogibabatechnology

    jogibabatechnology

    Joined:
    Oct 24, 2022
    Posts:
    1
    Let me tell you how I fixed this issue.

    - Change target api level to 30 and create build.
    - Now change api level to 33 and create build.

    Hope this will fix the issue.
     
    StudioZoo likes this.
Thread Status:
Not open for further replies.