Is there some special environment for creating desktop app in react native - react-native

I was trying to make react native desktop app, I have never used it before its my first time experience and am facing errors I did tried to resolve them but couldnot, i did followed the instructions given on official website, error i am facing right now is:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.WindowsSDK.target
s(46,5): error MSB8036: The Windows SDK version 10.0.18362.0 was not found.
I installed the sdk but its not going and this is what i see on my terminal
Build failed with message Building Solution returned error code 1. Check your build configuration.

nailed it....!!!
I don't know why but the issue was with the target SDK version 10.0.18362.0...
I installed the latest version and now its working absolutely fine.....

Related

Library linking issue after upgrading to React Native 0.70.3

We upgraded the mobile development project we are working on to React Native v0.70.3 from 0.66.4 and our build starting to give all sort of issue in our build server after that. Both iOS and Android builds are failing with following error messages.
Android:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-camera-kit:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:/Users/jenkinsoffshore/CICDBuilds/workspace/Mobile-Service-Android/node_modules/react-native-camera-kit/android/build/intermediates/merged_res/release/values/values.xml:2784: AAPT: error: resource android:attr/lStar not found.
iOS:
iOS build ends in success and we can upload to testflight as well. but getting the following error in email and the app crashes in devices.
ITMS-90863: Apple silicon Macs support issue - The app links with libraries that are not present on Mac:
#rpath/hermes.framework/hermes
After you’ve corrected the issues, you can upload a new binary to App Store Connect
We upgraded the MacOS version to Ventura and Xcode along with in the build machine. In developer machine both builds work fine.
Do we have to do anything specifically after upgrading to React Native 0.70.3?
Downgrade to atmost react-native 0.69
Rebuilding the server completely solve the issue. We had to setup everything from scratch. There must be a simple solution that that but project deadlines made us to go for a full re-inttall.

App center Error: /Users/runner/work/1/s/android/gradlew failed with return code: 1

I'm using react native to build my apps and thought to give Microsoft app center a chance.
The main issue I have is that I cannot finish the build.
This should be a non-production build that will be tested by the QA team.
This is the error I get:
I have found the issue.
I was the Gradle version, there is no 7.3**
The latest version is 7.1.1 so when I changed the URL to gradle-7.1.1-all.zip It worked.

How to use titanium inspector using titanium 5.2.2?

I am using Appcelerator titanium CLI to build ios app. I want to debug the app With Chrome DevTools but it seems like it's not compatible with the version which I have installed currently.
As per ti-inspector documentation, I have installed the node package by the below command.
npm install -g ti-inspector
So, When I tried this into my titanium project directory I am getting this response which is unexpected.
tn-inspector
Unexpected error: undefined
NOTE: titanium version - 5.2.2
Useful GitHub link: https://github.com/omorandi/TiInspector
Need help to understand or mitigate this issue. Thanks in advance!!!.
That repo is 5 years old and might not be compatible with the current SDK. You can use this instruction: https://docs.axway.com/bundle/Appcelerator_Studio_allOS_en/page/debugging_android_apps_with_3rd-party_tools.html to use the internal dev tools connection.

react-native android app gives error , but iOS works

i am new to react native
i followed the instructions on facebook react-native site to install java, Android Studio, SDK and SDK tools
the emulator is up and running , paths are correct. but when running the app i get
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':app'.
Failed to notify project evaluation listener.
javax/xml/bind/annotation/XmlSchema
the same app IOS runs , i even tried Android USB debugging
help please
anyone?
The problem was Java 9. even though react-native site asks you to install Java SDK 8 or later , then 9 installation doesn't work for some reason. I uninstalled 9 and installed 8 and it worked like a charm
This normally happens when the JDK is not correctly installed or the JAVA_HOME has not properly been set. Make sure to export your JAVA_HOME path. and have a working JDK version running on your computer.

Cordova - Windows8 does not recognise navigator.notification.alert

I am having a hard time getting cordova to work as I expect.
Here are the steps I have taken.
npm install -g cordova
md apps
cd apps
cordova create win8 com.win8.tryout win8tryout
cordova platform add windows8
In the www/js folder I edited the index.js adding
navigator.notification.alert('try me out');
to the device ready event.
Then I build the cordova project from the apps/win8 folder
cordova build
Then I opened the visual studio solution in the platforms/windows8 folder and ran the application.
The code fails at the navigator.notification.alert('try me out'); line with
"JavaScript runtime error: Unable to get property 'alert' of undefined or null reference"
I suspect that the build process isn't working correctly because the cordova.js file in the windows8/www directory is only 52kb and I was expecting a file of about 300kb.
Any ideas or suggestions would be appreciated.
Ok so a bit more research and I realised my sort comings.
From the documentation here:
"From version 3.0 onward, Cordova implements all device APIs as plugins..."
I had originally downloaded v2.9.1 which did not implement the plugin architecture.