Invalid Config Path - android-studio

Android studio is giving this "Invalid Config Path" error. I've already tried this: Android studio path error and reinstalled it, it still doesn't seem to work.
See this: http://prntscr.com/9zufj4
Also, I have renamed the username from "Tanuj Singh" to "Tanuj" and this might be a path issue, anybody knows how to fix?

i also had the same probelm. Try changing or creating a new Path in the system variables and assign it to your java version and the directory as shown

Related

Setting up a path for Haskell-Linter in VS Code on windows 10

I am trying to make haskell-linter to work on VS Code on my windows 10 machine. Apparently you need to add a path to the .exe file for it to work. I get this error message.
Cannot hlint the haskell file. The hlint program was not found. Use the 'haskell.hlint.executablePath' setting to configure the location of 'hlint'
In the Dependencies options there is following information.
It expects a version of hlint >= 1.9.1 to be installed and already added to >the path. If it is installed but cannot be found, add the path to your >preferences as seen below"
"haskell.hlint.executablePath": "Path\To\Executable"
I tried adding a path in the system environment as such.
Variablename: haskell.hlint.executablePath
Variablevalue: C:\Users\name\.vscode\extensions\hoovercj.haskell-linter-0.0.6\node_modules\.bin
I am fairly sure the variable value is the thing wrong here. I think I need to find the path to the .exe file for for the extension, but I can't seem to find it in the folder containing the extension itself. There is probable an easy fix that I am just to inexperienced to see. Please help, and if you do, explain it as if I was 8. :)
Edit 1: I now know where to put the path to what i assume must be the .exe file for Haskell-linter, however i don't know where that file is. As stated i cant find any .exe files in the extension folder.
Edit 2: I reinstalled hlint and added the new path. it finally seems to work as intended.

Cannot create flutter project in android studio

"Flutter/bin/cache/dart-sdk/bin/dart.exe" is not recognized as an internal or external command operable program or batch file.
It sounds like dart.exe isn't installed correctly. First try reinstalling flutter sdk and restarting your computer. If it still doesn't work, make sure the path "Flutter/bin/cache/dart-sdk/bin/" directory is part of your PATH variable.
In my case, the dart.exe got delete somehow, so it worked after I got the file back to where it suppose to be.

Node.js - "which node" returns wrong path

I was messing around with my node.js config, following a guide on moving the globals folder to somewhere more appropriate.
I eventually wound up in a position where I couldn't install anything with NPM. So I tried "which npm". This returns:
"which npm"
The file path is wrong, my the C:\ drive is not being entered properly. Obviously, this is wrong. But I couldn't figure out how to change this. Out of curiosity, I tried "which node":
"which node"
Which is also wrong. I can't edit the prefix file because npm won't let me do anything. I've tried PC restarts, complete uninstalls, adding the real folder path to the $PATH but nothing is working.
Would appreciate some help!
To fix this, I delete the .npmrc file in the home directory (windows: C:\user\username), uninstalled and re-installed node.
Things are working fine now.

Cordova reports ANDROID_HOME is not set even though it is

I am trying to build the hello world app that comes with Cordova. I created the project and have added the following to my .bashrc:
export ANDROID_HOME=~/Android/Sdk
export PATH=${PATH}:~/Android/Sdk/tools:~/Android/Sdk/platform-tools
When I run echo $ANDROID_HOME, I see the correct path and running echo $PATH also returns the path with the correct sdk path appended. However, when I run sudo cordova build, it still says that $ANDROID_HOME is not set and android is not in your path. I have been trying to fix this for the last 3 hours with no solution :( Any help is appreciated! Thanks!
I seemed to have fixed my problem.
I am not 100% what it was, but it is likely that it had something to do with a combination of sudo and my JAVA_HOME variable not being set.
I was previously running sudo cordova build which was returning the error. I tried deleting and recreating the project after I read somewhere that it might be because of the sudo. After recreating the project, I ran it with just cordova build and I got a new error: Unable to run java -version. I figured that it was having some trouble locating my jdk installation and I had read somewhere that you needed to assign the JAVA_HOME variable in your .bashrc. So I added in export JAVA_HOME=/opt/java/jdk1.8.0_45 and then added $JAVA_HOME/bin to my path. After this, it built successfully.

Adding blackberry10 platform in cordova(3.0.0) is showing "Error: node cannot be found on the path. Aborting"

I had installed blackberry 10 required software.
Error: node cannot be found on the path. Aborting.
I'm having the same problem. It works when I specify android but not when I specify blackberry10.
As pointed out by Ludivoc above, node is in my path. My command sequence is:
mydir>cordova create test com.example.test Test
mydir>cd test
mydir\test>cordova platform add android
mydir\test>cordova platform add blackberry10
[Error: node cannot be found in path. Aborting.
]
mydir\test>where node
C:\Program Files\nodejs\node.exe
I have also verified that the bbndk is in my path:
mydir\test>where blackberry-signer
C:\bbndk\host_10_1_0_238\win32\x86\usr\bin\blackberry-signer
C:\bbndk\host_10_1_0_238\win32\x86\usr\bin\blackberry-signer.bat
FWIW, I'm running Windows 7 Professional (64bit)
It seems to me that this problem is specific to the cordova scripts for blackberry10 and not to the node installation.
SOLVED: I've had some luck with this problem and there is an answer posted on my thread at http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/lt-img-gt-images-not-being-cached-in-BB10-Webworks-app/m-p/2649771/highlight/false#M41350. The thread actually discusses another problem, but I was able to get this one solved as well (I think:-)). Essentially, you have to make some edits to the init.bat file at C:\Users\.cordova\lib\blackberry10\cordova\3.1.0\bin
We had the same problem and managed to fix it.
The first problem "Error: node cannot be found on the path. Aborting." is related to a file called check_reqs.bat which can be found in the .cordova dir, normally situated in your users home eg. C:\Users\.cordova\lib\blackberry10\cordova\3.1.0\bin\check_reqs.bat
This script tries to check for some files using a variable called %CORDOVA_NODE% e.g.
if not exist "%CORDOVA_NODE%\node.exe" (
No matter what I do, this variable is NEVER set when I call cordova so I just set it by hand
SET %CORDOVA_NODE%=somepath_dont_use_quotes
You might also have to adjust %CORDOVA_BBTOOLS%, on one of our machines it worked, on one it didn't, I was NOT in the mood figuring out why.
The same CORDOVA_NODE issue has to be fixed in your build.bat situated at
\platforms\blackberry10\cordova\build.bat
Last but not least we had a problem in packager.js. There is a logger used in there which gives an error whenever the packager tries to call it so we just put it under comments.
I know this is a little bit of a hack us the %CORDOVA variables should be taken from your system but as those paths shouldn't change we are h appy with the solution.
Open the check_reqs.bat file under C:\Users.cordova\lib\blackberry10\cordova\3.1.0\bin\check_reqs.bat and:
replace %CORDOVA_NODE% with your path to nodejs, mine is C:\Program Files\nodejs.
Then repalce %CORDOVA_BBTOOLS% with the path the blackberry sdk, mine is: C:\bbndk\host_10_2_0_15\win32\x86\usr\bin.
Finally replace the last line "%CORDOVA_NODE%\node" "%~dp0\check_reqs.js" %* by "C:\Program Files\nodejs\node.exe" "%~dp0\check_reqs.js" %*
It works for me
I believe you would get this error if 1) you have not installed node.js or 2) you have installed node.js but not yet added it to your system path.
These two pages provide further detail that may be helpful:
http://cordova.apache.org/docs/en/3.1.0/guide_cli_index.md.html#The%20Command-line%20Interface
http://cordova.apache.org/docs/en/3.1.0/guide_platforms_blackberry10_index.md.html#BlackBerry%2010%20Platform%20Guide
If you install nodejs in the default location, it should be installed in a location that is already in the system path on MacOS
i have updated cordova to 3.2.0,now everything is working fine in win7.
Thank you all
Have u downloaded the Blackberry SDK. You have install the blackberry sdk manually from blackberry's website. only then u can use it in phonegap.
This error occurs in C:\Users\{username}\.cordova\lib\blackberry10\cordova\{version}\bin\init.bat
The fix for me was to add a new environment variable:
Name: CORDOVA_BBTOOLS
Value: C:\Program Files\BlackBerry\BB10 WebWorks SDK 2.2.0.15\cordova-blackberry\bin\dependencies\bb-tools\bin
Your path might not be the exact same. If you can't find it do a search for blackberry-nativepackager.bat and the folder that contains that is the directory you need to set as the value.

Resources