i know there is a duplicate question but i don't see the answer there , so asking a diff question.
how to use lower version gradle in android studio
How to downgrade to older version of Gradle
i clicked on gradle upgrade pop up in android studio , and it installed 6.1.1 , currently there are some issues with 6.1.1 version, so i wanted to install the old version 5.6.4 . so i went to AS -> file -> project structure ->project and changed back to old version 5.6.4. then got the following error.
Gradle sync failed: Minimum supported Gradle version is 6.1.1. Current version is 5.6.4. If using the gradle wrapper, try editing the distributionUrl in /Users/sravan/projects/android-project/gradle/wrapper/gradle-wrapper.properties to gradle-6.1.1-all.zip
it was working fine before upgrade. so just want to go back to 5.6.4.
i reinstalled android studio by deleting all the projects, .gradle files and all. but still did not work.
any thoughts ? where we can setup minimum version ?
got it resolved:
uninstall the entire android studio
uninstalling android with the following commands
rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm -Rf ~/Library/Preferences/com.google.android.*
rm -Rf ~/Library/Preferences/com.android.*
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*
rm -Rf ~/.AndroidStudio*
rm -Rf ~/.gradle
rm -Rf ~/.android
rm -Rf ~/Library/Android*
rm -Rf /usr/local/var/lib/android-sdk/
rm -Rf /Users/<username>/.tooling/gradle
Remove your project and clone it again and then goto Gradle Scripts and open gradle-wrapper.properties and change the below url which ever version you need
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.6-all.zip
Related
I install Android Studio about 2 week ago and all work fine. But today I run studio and it don't start. I remove and install again. But it also don't work.
open -a /Applications/Android\ Studio.app
LSOpenURLsWithRole() failed for the application /Applications/Android Studio.app with error -10810.
macOS Catalina 10.15.6
I deleted folder /Users/user/Library/Preferences/AndroidStudio4.0
And run app. App run and work correct.
When a new version/update of an existing app is built, the app is not installed/updated over existing APK, whereas if the APK isn't installed previously on the device the updated APK is installed easily
All I did was changing the version from '1.0.0' to '1.0.1' in config.xml file
Any ideas?
Thanks.
Please try to remove all existing platform, node_modules, plugins, www folders.
Use below command in the project root directory:
rm -rf platforms/ node_modules/ plugins/ www/ .sourcemaps/ .tmp/
npm i
ionic cordova build android
I'm working on an app build with react-native.
I installed a package "haul" and
remove it after I read it's doc more decide not to use it.
then I encounter a problem
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module 'PATH/node_modules/haul/bin/cli.js'
I did the sequence
rm -rf node_modules
watchman watch-del-all
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/metro-*
rm -rf $TMPDIR/haste-*
npm start -- --reset-cache
and the problem is gone.
today I try to build a release package, and the problem is back.
only this time it happens in :app:bundleReleaseJsAndAssets stage only.
I tried a lot of things: remove yarn cache, switch to npm to manage node_modules, switch node version..
this time it won't fix.
I can't even find the string "haul" in my project.
project.ext.react = [
cliPath: "node_modules/haul/bin/cli.js"
]
is still in build.gradle,
don't know why text find didn't spot it.
anyway, it's fixed now.
Failed to build DependencyGraph: #providesModule naming collision:
Duplicate module name: react-native-vector-icons
Paths: /Users/collumj/research/kishar-nine/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/collumj/research/kishar-nine/ios/build/Build/Products/Debug-iphonesimulator/kisharNine.app/package.json
This error is caused by a #providesModule declaration with the same name across two different files.
Error: #providesModule naming collision:
Duplicate module name: react-native-vector-icons
Paths: /Users/collumj/research/kishar-nine/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/collumj/research/kishar-nine/ios/build/Build/Products/Debug-iphonesimulator/kisharNine.app/package.json
I had react-native-vector-icons installed (and working) a couple of days ago. Had an issue with a debugger line not being hit so I thought maybe restarting the packager would help. Now the packager won't start at all. I have:
removed node_modules and reinstalled
checked out code from a prior commit (that didn't have react-native-vector-icons) and removed node_modules etc.
./node_modules/react-native/packager/packager.sh clean
react-native unlink react-native-vector-icons
watchman watch-del-all
rm -rf $TMPDIR/react-* && watchman watch-del-all && rm -rf ios/build/ModuleCache/* && rm -rf node_modules/ && npm cache clean && npm i --silent
Still getting the same error. I can checkout a fresh copy of the repo and start it with no issues so I have to assume this is a caching/build issue.
How can I resolve this?
This kind of error may occur if the package you are trying to add to the project is included twice, so the build system fails to register a package with a duplicate name. It may happen when you run link command several times.
To fix it make sure that all files, that are usually modified after running react-native link (for example android/settings.gradle, android/app/build.gradle, etc) have only one entry for the package you are trying to add. To be safe, you could even try to revert changes under android/ and ios/ directories and run link again.
How do I uninstall a plugin I installed with pathogen?
Locate your bundle folder which should be in:
Linux/Mac: ~/.vim/bundle
Windows XP: C:\Documents and Settings\(UserName)\vimfiles\bundle
Windows7: C:\Users\(UserName)\vimfiles\bundle
Delete the folder of the plugin you want to delete.
Note: If you chose a different directory for pathogen to install your plugin then locate that folder and delete the plugin folder accordingly.
Restart Vim
Tip: In Vim type :echo $HOME to see your Vim home directory
Pathogen installs plugins as git submodules. Therefore uninstalling a plugin is removing a git submodule. Taking 'vim-rvm' as example plugin.
git submodule deinit bundle/vim-rvm
git rm bundle/vim-rvm
git rm --cached bundle/vim-rvm
rm -rf .git/modules/bundle/vim-rvm
Do the reverse of what you did to install it.