android studio issue

Not favoritedFavorited Favorited 0 favourites
  • 8 posts
From the Asset Store
[C2] [C3] Support C3 build service and Android 14
  • End of August is coming and we need to upgrade api levels.Every year I do it with android studio easily.This time again I upgraded to latest version of android studio,I deleted .gradle and .idea files to sync the project but I get this error:

    Could not resolve all dependencies for configuration ':app:debugRuntimeClasspathCopy'.

    Cannot select root node 'debugRuntimeClasspathCopy' as a variant. Configurations should not act as both a resolution root and a variant simultaneously. Be sure to mark configurations meant for resolution as canBeConsumed=false or use the 'resolvable(String)' configuration factory method to create them.

    Another error at the same time:

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.0.

    You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

    For more on this, please refer to docs.gradle.org/9.0-milestone-1/userguide/command_line_interface.html in the Gradle documentation.

    I couldnt solve this issue,if anybody encountered similar issues I would be happy if you help,thanks.

  • Hi.

    Do you have any third-party plugins installed that require Android Studio to compile packages?

    It would be good if you indicated what kind of plugins these are.

    In general, the assembly of the project for Android Studio has an intermediary, Cordova, and it is she who pulls up third-party plugins and links them to Gradle. I don't know what kind of plugins there are yet, you may have to export to Cordova, then compile the project for Android Studio there, or immediately compile and sign the package.

    Here are the commands for Cordova

    Remove the platform

    cordova platform remove android
    

    Then add the platform Cordova will pull up all the plugins again and link them.

    cordova platform add android
    

    Then you can build

    cordova build android
    

    Then you can compile the signed package

    cordova build android --release -- --keystore=keystore.jks --storePassword=****** --alias=****** --password=****** --packageType=bundle
    
  • I use gameanalytics but I still get same error if I remove it from the project

  • Also when I downgrade to version r432 which exports for android 34 I can build the project without problem.The issue starts within the first version of construct that exports for api35.

    I also tried uninstalling and reinstalling sdks for api35.

  • I use gameanalytics but I still get same error if I remove it from the project

    I used the latest stable version of Construct 3 and added the analytics plugin to the test project. The package was compiled in normal mode. I opened the package with an archiver and checked that it really contains the analytics plugin.

    I ask again what makes you build through Android Studio, why if you have no experience with this framework, why don't you just compile through the Construct server?

    If you export it like on the screenshot to the Cordova archive and let me download it, I can take a look at what's happening during the build in the evening.

    (Sorry if my post seems rude, I'm not a native speaker.)

  • Hi,thank you for spending time on my post and for your help.I export for android studio because I need to remove permissions since the game is for kids.I am not new to it,this is how I have to do it everytime.The weird thing on my side I can build it without problem with previous version but only api 35 ones do this.now that you say it works on your side that means it isnt a common error.

    can you tell me which version of android studio you are using and what sdks you have installed in it,yoır settings etc.

    Thanks again.

  • In gradle-wrapper.properties I changed gradle version from 9 to 8.9 and it built successfully.The solution was that and it took me 2 days to figure it.

    Thank you for your support again!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • In gradle-wrapper.properties I changed gradle version from 9 to 8.9 and it built successfully.The solution was that and it took me 2 days to figure it.

    Thank you for your support again!

    It's good that you took the time to tell me what helped you. Maybe someone else will find this topic, it will be useful for someone

    I think I don't get this error because when I opened the project in Android Studio for the first time, it quickly checked it and offered me to update Gradle to version 9.

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)