I am trying to setup android development environment without Android Studio on Windows system. I will be developing an application using nativescript so I followed their tutorial and was able to setup things as mentioned on their page(link). And tns doctor gives "No issues were detected".
Note: I haven't used Chocolatey to manage the installation. I have manually installed the packages that were mentioned on the page.
I created avd using:
avdmanager create avd -n nvDev -k "system-images;android-25;google_apis;x86" -b google_apis/x86
which is also listed by(emulator is under 'tools' folder)
emulator -list-avds
--------------------------
nvDev
Now when I try to start emulator it is giving me error:
emulator.exe -avd nvDev
--------------------------
[3708]:ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at ..\emulator\lib64\qt\lib
Could not launch '..\emulator/qemu/windows-x86_64/qemu-system-i386.exe': No such file or directory
As emulator folder was not found I tried to install emulator using the sdkmanager but it gives me a warning:(sdkmanager is under tools/bin)
sdkmanager "emulator"
Warning: File C:\Users\CES_Arion\.android\repositories.cfg could not be loaded.
Warning: Failed to read or create install properties file.
There was no "done" message. And even the emulator folder was not created alongside tools.
Wow, I feel so foolish now. The problem was I did not run the command prompt as an Admin so the files could not be created.
Related
Able to run flutter commands from src/flutter/bin. But if I am in my project directory or any other one, 'flutter' is not recognised. But there are some commands that should be run within the project like pub upgrate, pub outdated and etc. There is a similar question here 'flutter' command is not working in Root Directory of Project. [Windows] but couldn't find an answer. Will be very grateful for help
The solution that worked for me.
Turn off antivirus.
Reinstall Flutter SDK and Android Studio.
After following all instructions and installing plugins( https://medium.com/d6-digital/installing-the-flutter-in-windows-803f3cd1fa4c), go to File->Settings->Appearance-> Android SDK->SDK tools->enable Google USB Driver.
4.Then install Java SDK. You can find the link here(https://www.edureka.co/community/74624/how-to-install-java-in-windows-system?show=74624#q74624).
5.Add path to Java/bin to your variables.
Now it works from any directory
Trying to use iFuse to access iPhone files on Windows but not getting anyway. Would appreciate if people can share instructions/steps on how to get this to work?
iFuse to access iPhone files on Ubuntu works well; therefore, I am confident the issue is on Windows.
Using https://github.com/hooby3dfx/ifuse/releases/tag/win-dokany-0.1
Unzip test.zip in the above link
make sure iTune is installed
Install the specified Dokan version; doesn't seem to work with the latest Dokan version
Open a command window in Admin mode to run the command (e.g. ifuse tmnt --container bundle ID)
While the command is still running in the Admin window, open another command window to list the mounted directory
I have downloaded VS Code for Mac, but I'm unable to install it on my MacBook. I get the following error:
"Visual Studio Code - Insiders" can't be opened because Apple cannot check it for malicious software.
Here is a sreen shot of the full error message:
How can I get VS Code to install and run?
The problem is caused by macOS requiring apps to be notarized by Apple. The best way around this problem is to simply right-click on the app and select Open. If this doesnt work, first move the app to the Applications folder. Then open Terminal and paste and execute the following command:
xattr -d com.apple.quarantine /Applications/Visual\ Studio\ Code.app
This should remove the quarantine on the app and allow you to run it.
I have deleted my project on Xcode may it be .xcworkspace or .xcodeproj.
Because of that, I had to delete IOS and android folders while downgrading, updating and re-upgrading my react version to re-install IOS and android folders.
Thanks to that the emulator is working but unfortunately the project isn't present in the emulator and is still absent with Xcode. One thing to point out is that the simulator only appears when ran in the integrated terminal and nor in general terminal after cd-ing in the project folder.
Can anyone please help re-integrating the project in the emulator and on Xcode, please.
Here is the error when the emulator is running in a general terminal:
Here is the error when the emulator is running in a general terminal:
error Command failed: xcrun instruments -s
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
Here is the error for building the project within emulator when ran from VS code integrated terminal:
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening project.xcodeproj
The process you need to follow is so similar to renaming a react native app. Basically you just need to run react-native upgrade in your root project directory. For further info you can check another question here. The instructions below explains how to create another react native project based on a copied one with a new name.
First copy the directory which your to-be-name-changed application exists. And go to your newly cloned directory.
Change the name at index.ios/android.js file which is given as a parameter to AppRegistry.
Change the name and version accordingly on package.json
Delete /ios and /android folders which are remaining from your older app.
Run $react-native upgrade to generate /ios and /android folders again.
Run $react-native link for any native dependency.
Finally run $react-native run-ios or anything you want.
Courtesy of
https://stackoverflow.com/questions/42506068/how-can-i-regenerate-ios-folder-in-react-native-project
Whenever I try to install the Visual Studio SDK I get the following error:
Windows Program Compatibility mode is on. Turn it off and then try Setup again.
I have checked and Compatibility mode is not turned on. From what I've read, renaming the installer to vssdk_full.exe should help. That hasn't had any impact.
I got the installer from Microsoft's website.
What do I need to do to get this to install?
Are you installing on Windows 10? If so, then I have the same problem and it seems as though the current SDK setup is checking the Windows version and 10 isn't currently supported. See https://social.technet.microsoft.com/Forums/en-US/77c61be0-1303-4040-a587-62843d321159/visual-studio-2013-sdk?forum=WinPreview2014General for more info
I have managed to get it to install on windows 10, download the sdk, it will download vssdk_full.exe, run this with /layout path which will extract the actual setup file.
Then set compatibility on the new file to win 8 and it will install just fine.
You might not need to do the/layout thing but that is what I did.
ed
I had the same problem. I downloaded .iso file with install package form the internet. Then I mounted it using PowerISO and tried to start it from virtual CD drive. It ended up in the same message as above.
I looked it up and thought that in Properties of .exe install file, it's enough to uncheck some boxes compability section. But nothing was checked.
Soon afterwards I unzipped the package to a temporary directory with PowerISO and installed Visual from there. Worked without problems.
I had this problem, I renamed the instalation file to "vssdk_full.exe" and it installed without problems.