Error when creating new project in android studio 3.3.2 - android-studio

When creating new project in android studio, the project can be created in the specified folder, But IDE throws the below error:
Argument for #NotNull parameter 'file' of
com/intellij/vcsUtil/VcsUtil.getVcsFor must not be null
So I can't create or import any project.what is
missing in com .... /vcsUtil/VcsUtil.getVcsFor ? I browsed for many days.
Issue with "#NotNull parameter 'file' ". How can I solve the issue?

I found the answer.
Actually my company network system blocked the required URL. I got full access in IP. Then it was rectified. I can create a new project without fail.

Related

Android New Project Creation

Whenever I am creating a new project it's showing run task error.
C:\Users\C0de-01\AndroidStudioProjects\MyApplication\app\src\main\res\values\colors.xml:4:39: Error: XML document structures must start and end within the same entity.
If I correct this another xml file showing the another error without closing entity. How to resolve this error. Why its not creating default xml colour file. But I tried to uninstall the android studio and install it again. Still I have the same problem.

Video Ads of Vungle SDK

I had follow the instruction from the channel 9
https://channel9.msdn.com/Blogs/Seth-Juarez/How-To-Integrate-the-Vungle-SDK-for-Windows-10?ocid=player
and I get the error below:
General metadata correctness
Error Found: The general metadata correctness test detected the following errors:
The assembly VungleSDK in file VungleSDK.winmd has a non-empty manifest resources table. Every Windows Runtime assembly must have an empty manifest resources table.
Impact if not fixed: Windows store doesn't allow apps that don't pass Windows Runtime Metadata Validation.
How to fix: Please ensure that the compiler you are using to generate your Windows Runtime types is up to date with the Windows Runtime specifications.
I does not understand this errors, anyone can help?
I had an error look like the same as the problem with the sdk, but not with the SDK, its in my own project.
The project doesen't contains anything except the project.json and refers a SharedProject which contains only one .cs file.
I get the same error, but I can't find the sollution.
I tryed:
- Add app.manifest (from template)
- Resource Dictionary
- Resource File
Both was empty as the error sais "Windows Runtime assembly must have an empty manifest resources table", so I created some empty one.
I would be happy to know what did you do with the Vungle SDK, what caused the problem and what solved it.
The Vungle winmd file contains same files like my projects winmd...
Here is the answer for my own problem.
Finally I found what caused the problem, by inspecting the .text file in winmd file and locate the file whose content was included in the .text.
Under the winmd project Properties the template generates a .rd.xml ( usually your package name) which is a resource dictionary what sould be removed in my case.
I know it won't help to solve the prolem with the old SDK which were patched earlyer, but if somebody get the error message on package validation and don't know what to do, here is something he can try.
(Just to be clear my problem not connected to the SDK I just get the same error message on validation)

MDHA Project not loading

I installed VS2013 Update2 and CTP1.1.
I'm trying to create a blank cordovaapp project. This error is appearing. How can I fix it?
Z:\VSProject\Projects\SampleHybridApp\SampleHybridApp\SampleHybridApp.jsproj
: error : The imported project "C:\Users\Vishal
Dwivedi\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets"
was not found. Confirm that the path in the declaration is
correct, and that the file exists on disk.
Z:\VSProject\Projects\SampleHybridApp\SampleHybridApp\SampleHybridApp.jsproj
Multi-Device Hybrid App projects do not work if there is a space in the project path (this is a Cordova related issue). In this case, your username has a space.
The only way to resolve this at present is create a different user without spaces in the name and create a new Hybrid app project.

Cant read configuration. RoleEnvironment may be inaccessible due to its protection level

This is my first azure project and I'm not sure if I'm doing something wrong.
I'm trying to get some configuration inside an MVC 3 webrole and for this I'm using:
RoleEnvironment.GetConfigurationSettingValue(KeyName)
When I run the application on the emulator i get his error:
BC30451: 'RoleEnvironment' is not declared. It may be inaccessible due to its protection level.
I tried to add the full namespace like this:
Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetConfigurationSettingValue(KeyName)
And I get this error:
BC30456: 'ServiceRuntime' is not a member of 'WindowsAzure'.
However, I can access the RoleEnvironment inside the "OnStart" event of the WebRole class.
So, is it the expected behavior? If yes, how am I supposed to read configuration through the whole project?
Thanks in advance;
Have you added a reference to the Microsoft.WindowsAzure.ServiceRuntime assembly in your MVC project?
http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleenvironment.aspx
I started a new solution based on seanost suggestion and it worked well, so I figured the problem wasn't VS. After a few try and errors I finally found a solution, I just don't have an explanation for it :-)
Under my MVC project I have a folder called "App_Code".
Since i come from web forms development I'm use to the name so I created this folder to keep some classes. If I try to access "RoleEnviroment" from a class inside this folder the project compiles but won't even open, no matter what I try to access it will throw the same error.
If I rename the folder or move the files to another folder (let's say "Code"), it just works.
As I said before, I just don't know why it happens (and it doesn;t really matter now :-)
FYI, if you're using Visual Studio's Azure templates, references to the following namespaces are included by default, so it's not necessary to set Copy Local to true:
Microsoft.WindowsAzure.Diagnostics
Microsoft.WindowsAzure.ServiceRuntime
Microsoft.WindowsAzure.StorageClient
To make sure Visual Studio and the SDK is installed correctly, you should be able to do the following: Create a new MVC3 Azure project, add a using directive for the ServiceRuntime library in your Home controller, then add the following code in the Index action:
ViewBag.configValue = RoleEnvironment.GetConfigurationSettingValue("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");
return View();
Then, add the following Razor syntax in the View:
<p>#ViewBag.configValue;</p>
And you should get the following result in your browser:
UseDevelopmentStorage=true

TFS Team Build - Build fails if app_code references another project in the solution

I've using Team Build 2010 for some time, and it suddenly stopped working after some changes in the code.
More specifically, when some file in App_Code used a reference from another project in the solution. I get this error message:
c:\Builds\Venus\Sources\Branches\xxx\xxx\xxx\App_Code\xxx.cs (9): The type or namespace name 'xxx' does not exist in the namespace 'xxx.xxx' (are you missing an assembly reference?)
Is it a known problem? Is there a workaround ?
I already tried deleting and redownloading the whole workspace but got no luck.
Thanks in Advance
This happened to me after doing a move to a web application project from a web site project. If your project is a web application project, then move the files out of the App_Code folder and delete it.

Resources