Worklight build error Failed initializing ClientProjectBuilder - ibm-mobilefirst

I have suddenly started getting worklight build errors like below. I have no clue why it started happening suddenly. The code was working fine until the remote machine I use for Xcode builds was rebooted. Any clue what could be causing it ?
ipad build failed: Failed initializing ClientProjectBuilder
android build failed: Failed initializing ClientProjectBuilder
iphone build failed: Failed initializing ClientProjectBuilder
Regards
Avi

The solution to this error, typically, is to delete the wlBuildResources folder, located in the TMPDIR of the OS.
See here: Worklight - FWLST1040E: android build failed: java.io.FileNotFoundException
Close Eclipse
Locate your temp folder (Windows, OS X)
Delete the wlBuildResources folder
Open Eclipse
Re-build
It may be helpful to also delete the native folder before closing Eclipse, however do note that if you have written custom native code you should first back it up so it won't be lost(!).

Related

Titanium Appcelerator **BUILD FAILED**

Getting the following error when I try to run my program on an iOS device
[INFO] : Invoking xcodebuild
[ERROR] : ** BUILD FAILED **
There is no other information displayed in the console about why the build has failed. I don't think my code is the issue because
It runs fine on the simulator, and
I tried running an example "Hello World" app and the same error occurred
I have recently updated my certificates and provision profiles, which is when this error started occurring.
I am running:
Node.js Version = 8.9.1
npm Version = 5.5.1
Appcelerator studio Version = 5.1.1.201809051655
Titanium SDK Version = 7.5.0.GA
Xcode Version = 10.1
Based on other forum posts that I have read, I have tried:
Cleaning the project
Using an older version of the Titanium SDK
Deleting old provision profiles from Xcode
Deleting old certificates from the keychain
Assigning correct provision profile and certificate from Run > Run Configurations
Removing modules used on the project
Using devices with different versions of iOS
Really at a loss of what else to try. Any recommendations would be greatly appreciated.
You can run appc run -p ios --log-level trace which will invoke the xcodebuild command with the highest possible log level. After that, the actual error will be shown. Most likely you are using a 3rd party module that is missing a framework link. If you got the log, you can paste it into a GitHub Gist and send it here, then we can find it for sure.

React native Build failed

I create react-native project on my laptop and it builds successfully.
But with the same project I try to run it on my desktop pc but it gives an error build failed.
Why?
This happened for me when I tried to compile with Windows OS while the main project was built in Ubuntu and there was a dot "." in one of my libraries folder names which is not permitted in Windows.
I have not gone into the details of this error. In my case, it will compile if the 'unable to delete directory' is deleted manually.

React native error install failed already exists

I just started working with react native. I created a new project using
react-native init ChatSample.
Then i run this command
react-native run-android --deviceId MYDEVICEID
Now after finishing 100% it shows this error
adb: failed to install app/build/outputs/apk/app-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install com.chatsample without first uninstalling.]
I moved to this folder and found that app-debug.apk exists there so i deleted it, but again when i run this command it shows same error.
Then i deleted the complete build folder and run this command but still got the same error. More precisely when it is around 50% it starts creating build folder and app-debug.apk and as soon as it reaches 100% app-debug.apk file is created in that folder. But why is the error coming, like this is a fresh project and all i did is just run two command first for creating project and other for running app.
You can open the project in Android Studio from the ProjectFile/android. Then build and run on your Phone
Is in your device the APK installed? Try uninstalling the APK from the device and then run the command again.

Android App is not able to open in Appium Automation in android OS 7 Nougat

i try to open the Android app in Nougat 7 or above android version but there is a error show in appium, the error is bellow.
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: Failed to install C:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]\r\n)","killed":false,"code":1,"signal":null,"origValue":"Command failed: Failed to install C:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]\r\n"},"sessionId":null}
info: <-- POST /wd/hub/session 500 7986.817 ms - 520
So, Please Suggest me how to solve the session null issue.
Note: the same code is run in android OS 6 Marshmallow, 5 Lollipop.
The issue you are facing was fixed in recent Appium server release 1.7.1.
In change log under Android section you will find
Add support to force upgrade settings app
So your steps now:
Update appium server: npm install appium#1.7.1 -g
Rerun your test
Try uninstalling the app manually if it already exists on the device. If it does not, try an erase/reset of the device itself. I've run into upgrade/overwrite issues in the past that were resolved by cleaning up the device.

Could not determine wrapper version

I've created a react native app, by simply doing:
react-native init app
I've followed this tutorial: Facebook Getting Started (I use Linux)
and I have done exactly what it says.
However, when I try to run the app (react-native run-android), I got the following message:
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Exception in thread "main" java.lang.RuntimeException: Could not determine wrapper version.
at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:111)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: java.lang.RuntimeException: No build receipt resource found.
at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:97)
... 1 more
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
```
How can I solve this problem?
According to this link
https://github.com/MinecraftForge/ForgeGradle/issues/227
it's because you have some special character in your project path (like "!")
I got the same issue in a Flutter project as I was organizing some of my projects. In my case also found that my source path contained special characters when I change the folders, after removing it works perfectly fine. This will usually happen to project that contains java code and I think this is because java is compiled based on the path you provide, so the compiler does not understand the special characters we used