#ANDROID STUDIO GRADLE ANDROID PLUGIN VERSION UPGRADE#The following are the most common use cases for the Upgrade The AGP Upgrade Assistant guides you through the changes needed to upgradeĪGP versions. Structure for the Upgrade Assistant, see Setup in this document. For betterīuild performance, avoid storing variables in buildSrc, such as dependencyįor more information about recommended project Or buildSrc to define constants and variables used in build files. Important: The AGP Upgrade Assistant does not yet support projects that use Upgrading the version of AGP used by your project lets you benefit from the #ANDROID STUDIO GRADLE ANDROID PLUGIN VERSION ANDROID#Refinements to the integration of the project build with Android Studio. There are frequent releases for AGP changes related to new features forĬonfiguring your build, new APIs for use by other Gradle plugins, and That helps you upgrade the version of AGP used by your project. You can confirm or revert reassigning pattern '*.The Android Gradle plugin (AGP) Upgrade Assistant is a tool in Android Studio You can confirm or revert reassigning pattern '*.psd'Ĭonfirm reassign this pattern to file type 'Adobe Photoshop'Ģ:41 PMğile pattern '*.apk' (from 'bundled' plugin) was reassigned to file type 'APK' by 'Android' plugin So when I open my project in Android Studio it also says:Ģ:41 PMğile pattern '*.psd' (from 'bundled' plugin) was reassigned to file type 'Adobe Photoshop' by 'Android' plugin If I wanted to use the most recent gradle plugin version (7.1.2), is there an alternative to OutputFile that I can use? Why is there an error (and warning) about not being able to resolve the android symbol and is there a way to fix it? Note: I've tried the suggestion on StackOverflow to comment the import, clean gradle and rebuild but that didn't fix the issue and neither did importing the project (rather than opening folder) which was the other StackOverflow suggestion I saw. Why did react-native-community set the gradle plugin version for the template to 4.2.2 when the gradle version is 7.2? Note: This goes against what the official Android docs recommend #ANDROID STUDIO GRADLE ANDROID PLUGIN VERSION PLUS#Plus it's an error and I like to investigate errors. I'm just someone who always likes to understand why something is happening especially when it goes against what the official Android documentation recommends. So that might have to do with why they set the gradle plugin version to 4.2.2, but I'm not exactly sure. The reason why I say this is because if you upgrade the gradle plugin version to 7.1.2 like the AGP Upgrade Assistant recommends, then OutputFile becomes deprecated lol. So the warning has to do with not being able to resolve the symbol otherwise it would pick up that it's being used there on line 181. OutputFile is actually used in the same file on line 181:ĭef abi = output.getFilter(OutputFile.ABI) Import <- where error occurs (line 3)Įrror: Cannot resolve symbol 'android'Warning: Unused import What's weird and annoying is that somehow it is able to successfully build yet there is a gradle error and a warning related to the import at the top of the /app/adle. The template sets the gradle version to 7.2 by default:ĭistributionBase=GRADLE_USER_HOME distributionPath=wrapper/ distsdistributionUrl=https\:///distributions/ <- here zipStoreBase=GRADLE_USER_HOMEzipStorePath=wrapper/dists From what I understand that's based on the gradle version which is set in the distributionUrl in gradle-wrapper.properties. If you create a fresh React Native Typescript Project using npx react-native init MyApp -template react-native-template-typescript and open the /android directory in Android Studio it will recommend you upgrade the gradle plugin version to 7.1.2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |