I am using visual studio 2015 with update 3 and TACO Update 10. Everything was working fine, but since yesterday I'm unable to make a release build for android. I reinstalled almost everything on my machine and the problem continues. The error has something to do with the gradle daemon. The relevant part of the build output is:
Starting a new Gradle Daemon for this build (subsequent builds will be faster).
1>MSBUILD : cordova-build error : FAILURE: Build failed with an exception.
1>MSBUILD : cordova-build error : * What went wrong:
**1>MSBUILD : cordova-build error : Unable to start the daemon process.**
1>MSBUILD : cordova-build error : This problem might be caused by incorrect configuration of the daemon.
1>MSBUILD : cordova-build error : For example, an unrecognized jvm option is used.
1>MSBUILD : cordova-build error : Please refer to the user guide chapter on the daemon at https://docs.gradle.org/2.13/userguide/gradle_daemon.html
1>MSBUILD : cordova-build error : Please read the following process output to find out more:
1>MSBUILD : cordova-build error : -----------------------
**1>MSBUILD : cordova-build error : java.lang.IllegalArgumentException: URI has an authority component**
1>MSBUILD : cordova-build error : at java.io.File.<init>(File.java:423)
1>MSBUILD : cordova-build error : at org.gradle.internal.classloader.ClasspathUtil.getClasspathForClass(ClasspathUtil.java:68)
1>MSBUILD : cordova-build error : at org.gradle.internal.installation.CurrentGradleInstallationLocator.findDistDir(CurrentGradleInstallationLocator.java:54)
1>MSBUILD : cordova-build error : at org.gradle.internal.installation.CurrentGradleInstallationLocator.locateViaClass(CurrentGradleInstallationLocator.java:45)
1>MSBUILD : cordova-build error : at org.gradle.internal.installation.CurrentGradleInstallationLocator.locateViaClassLoader(CurrentGradleInstallationLocator.java:41)
1>MSBUILD : cordova-build error : at org.gradle.internal.installation.CurrentGradleInstallationLocator.locate(CurrentGradleInstallationLocator.java:31)
1>MSBUILD : cordova-build error : at org.gradle.internal.installation.CurrentGradleInstallation.locate(CurrentGradleInstallation.java:46)
1>MSBUILD : cordova-build error : at org.gradle.internal.installation.CurrentGradleInstallation.get(CurrentGradleInstallation.java:41)
1>MSBUILD : cordova-build error : at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:45)
1>MSBUILD : cordova-build error : at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36)
1>MSBUILD : cordova-build error : at org.gradle.launcher.daemon.bootstrap.GradleDaemon.main(GradleDaemon.java:22)
1>MSBUILD : cordova-build error : Picked up _JAVA_OPTIONS: -Xmx512M
Forcing VS TACO to use the latest version of JAVA JDK fixed the problem.
Related
I was trying to build an app via ./gradle bundlerelease
got an error everytime:
C:\Users\xxx\Desktop\app\node_modules\#react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\app\ReactNativeFirebaseAppInitProvider.java:25: error: cannot find symbol
BuildConfig.APPLICATION_ID + ".reactnativefirebaseappinitprovider";
^
symbol: variable APPLICATION_ID
location: class BuildConfig
1 error
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-firebase_app:compileReleaseJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Downgrad the gradle to 3.6.0 (in build.gradle) and rebuild the project.
classpath('com.android.tools.build:gradle:3.6.0')
I have a react-native project that builds fine with react-native run-android. But if I run it as react-native run-android --deviceId xxxx, I get the following error:
> Task :#remobile_react-native-qrcode-local-image:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':#remobile_react-native-qrcode-local-image:verifyReleaseResources'.
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:7: error: resource android:attr/colorError not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:11: error: resource android:attr/colorError not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2734: error: resource android:attr/fontStyle not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2735: error: resource android:attr/font not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2736: error: resource android:attr/fontWeight not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2737: error: resource android:attr/fontVariationSettings not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2738: error: resource android:attr/ttcIndex not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2902: error: resource android:attr/startX not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2905: error: resource android:attr/startY not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2908: error: resource android:attr/endX not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2911: error: resource android:attr/endY not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2919: error: resource android:attr/offset not found.
error: failed linking references.
It's quite strange. It's as if react-native can't interpret static files in a QR-code library when passing a --deviceId. Any ideas why this might be?
Here's the repo if anyone is interested.
Getting [LiveView] File Server unavailable. Host Unreachable # 192.168.7.151:8324 error while running Appcelerator in the phone. It is working fine in simulator.
Here is the error, [ERROR] : ReferenceError: OS_MOBILEWEB is not defined [ERROR] : File: /alloy.js [ERROR] : Line: undefined [ERROR] : SourceId: undefined [ERROR] : Backtrace: [ERROR] : undefined [ERROR] : TypeError: Alloy.createController is not a function [ERROR] : File: app.js [ERROR] : Line: undefined [ERROR] : SourceId: undefined [ERROR] : Backtrace: [ERROR] : undefined [ERROR] : [LiveView] Disconnected from Event Server
Try to use the latest liveview version (npm i -g liveview) if you use the CLI or make sure you are not behind a firewall / VPN. If you are, you can configure it in your ti config settings.
When i'm trying to build my app for android, i received following error from console :
[INFO] : No aidl files to compile, continuing
[INFO] : Generating i18n files
[INFO] : Generating /Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/res/values/theme.xml
[INFO] : Packaging application: /Users/xxx/Library/android-sdk-macosx/build-tools/23.0.1/aapt "package" "-f" "-m" "-J" "/Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/gen" "-M" "/Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/AndroidManifest.xml" "-A" "/Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/bin/assets" "-S" "/Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/res" "-I" "/Users/xxx/Library/android-sdk-macosx/platforms/android-23/android.jar" "-F" "/Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/bin/app.ap_" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview:com.facebook" "-S" "/var/folders/13/d0dckfds7071zrrts33x0fgm0000gn/T/117118-27860-1lfl9l7/res" "-S" "/var/folders/13/d0dckfds7071zrrts33x0fgm0000gn/T/117118-27860-sgvk1n/res" "-S" "/var/folders/13/d0dckfds7071zrrts33x0fgm0000gn/T/117118-27860-tpzi5i/res"
[ERROR] : Failed to package application:
[ERROR] :
[ERROR] : /Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/bin/assets/Resources/images/job-interim-jobinterim-tempwork-temporary-working-service-qarma-carma-app-jobapp-apple-google-mobile.png: error: Invalid filename. Unable to add.
So i cannot build my app to android, ios is working well.
Thank you for your helps.
The error messages says "invalid file name". So perhaps you should rename your file to a shorter name?
I have created a Titanium ios 3.1.0 app, But now when I am trying to run it is giving me the following error.
[ERROR] : An error occurred running the iOS Simulator
[ERROR] : [DEBUG] Session could not be started:
Error Domain=DTiPhoneSimulatorErrorDomain Code=1
"SpringBoard failed to launch application with error: -3"
UserInfo=0x7fe2b84837c0 {NSLocalizedDescription=SpringBoard failed to
launch application with error: -3, DTiPhoneSimulatorUnderlyingErrorCodeKey=-3}
[ERROR] :
[ERROR] : Project failed to build after 1m 8s 528ms
Currently it shows only black screen
I have no idea what to do next, any help would be appreciated.
Do following and you would be good to go
1)Clean the project
2)Delete the build
3)And final and most important reset the simulator
Thanks