LiveView Disconnected from Event Server - titanium

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.

Related

Unable to import a giter project in IntellliJ

I have created starter projects from the following link - https://www.playframework.com/documentation/2.6.x/Tutorials
Now I want to import these projects in IntelliJ.I am trying to follow the instructions from this link but I get this error. What is the mistake? I tried importing by first selecting the complete directory and later by selecting only build.sbt . IntelliJ versiokn is 2016.3.4
https://www.jetbrains.com/help/idea/getting-started-with-play-2-x.html#import_project
Error
Error while importing SBT project: ...
[error] at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:37)
[error] at sbt.MainLoop$.runLogged(MainLoop.scala:29)
[error] at sbt.StandardMain$.runManaged(Main.scala:104)
[error] at sbt.xMain.run(Main.scala:71)
[error] at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
[error] at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
[error] at xsbt.boot.Launch$.run(Launch.scala:109)
[error] at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
[error] at xsbt.boot.Launch$.launch(Launch.scala:117)
[error] at xsbt.boot.Launch$.apply(Launch.scala:18)
[error] at xsbt.boot.Boot$.runImpl(Boot.scala:41)
[error] at xsbt.boot.Boot$.main(Boot.scala:17)
[error] at xsbt.boot.Boot.main(Boot.scala)
[error] java.lang.ClassNotFoundException: org.jetbrains.sbt.CreateTasks$
[error] Use 'last' for the full log.
[error] Not a valid key: dump-structure (similar: buildStructure)
[error] */*:dump-structure
[error] ^
[INFO] [12/22/2017 05:46:39.234] [Thread-5] [CoordinatedShutdown(akka://sbt-web)] Starting coordinated shutdown from JVM shutdown hook
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0
See complete log in C:\Users\Manu\.IntelliJIdea2016.3\system\log\sbt.last.log Consult IDE log for more details (Help | Show Log)

Can't compile application when including Intercom Android SDK using Hyperloop

I have an Alloy app that I am trying to include Intercom's Latest SDK (3.1.2). I was able to compile the iOS app with no problems. However, when trying to compile the Android version, it throws errors.
Titanium SDK: 6.0.3GA
Hyperloop: 2.0.1
Android Build Tools: 23.0.1
Command that causes error while building:
Packaging application:
/Users/matiaspenela/Library/android-sdk-macosx/build-tools/23.0.1/aapt
"package" "-f" "-m" "-J"
"/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/android/gen"
"-M"
"/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/android/AndroidManifest.xml" "-A"
"/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/android/bin/assets"
"-S"
"/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/android/res"
"-I"
"/Users/matiaspenela/Library/android-sdk-macosx/platforms/android-23/android.jar"
"-F"
"/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/android/bin/app.ap_"
"--auto-add-overlay" "--extra-packages"
"ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview:io.intercom.android.sdk.gcm:io.intercom.android.sdk"
"-S"
"/var/folders/xh/4kptgxf94q99cc4rrwz1l56r0000gn/T/117231-7807-19ndtdv/res"
"-S"
"/var/folders/xh/4kptgxf94q99cc4rrwz1l56r0000gn/T/117231-7807-z4fljn/res"
"-S"
"/var/folders/xh/4kptgxf94q99cc4rrwz1l56r0000gn/T/117231-7807-15jhg3m/res"
"-S"
"/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-gcm-3.1.2/res"
"-S"
"/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res"
Errors thrown:
[ERROR] : Failed to package application: [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:12:
error: No resource identifier found for attribute 'expanded' in
package 'com.boatyard.hyperloop' [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:20:
error: No resource identifier found for attribute 'layout_scrollFlags'
in package 'com.boatyard.hyperloop' [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:26:
error: No resource identifier found for attribute
'layout_collapseMode' in package 'com.boatyard.hyperloop' [ERROR] :
[ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:33:
error: No resource identifier found for attribute
'layout_collapseMode' in package 'com.boatyard.hyperloop' [ERROR] :
[ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:42:
error: No resource identifier found for attribute 'layout_behavior' in
package 'com.boatyard.hyperloop' [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:72:
error: No resource identifier found for attribute 'layout_behavior' in
package 'com.boatyard.hyperloop' [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:89:
error: No resource identifier found for attribute 'layout_behavior' in
package 'com.boatyard.hyperloop' [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:93:
error: No resource identifier found for attribute 'layout_behavior' in
package 'com.boatyard.hyperloop' [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:42:
error: Error: No resource found that matches the given name (at
'layout_behavior' with value
'#string/appbar_scrolling_view_behavior'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:72:
error: Error: No resource found that matches the given name (at
'layout_behavior' with value
'#string/appbar_scrolling_view_behavior'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:89:
error: Error: No resource found that matches the given name (at
'layout_behavior' with value
'#string/appbar_scrolling_view_behavior'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:93:
error: Error: No resource found that matches the given name (at
'layout_behavior' with value
'#string/appbar_scrolling_view_behavior'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_expander_button.xml:1:
error: Error: No resource found that matches the given name (at
'layout_marginBottom' with value
'#dimen/intercom_composer_activity_margin'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_expander_button.xml:1:
error: Error: No resource found that matches the given name (at
'layout_marginEnd' with value
'#dimen/intercom_composer_activity_margin'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_expander_button.xml:1:
error: Error: No resource found that matches the given name (at
'layout_marginRight' with value
'#dimen/intercom_composer_activity_margin'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_expander_button.xml:1:
error: Error: No resource found that matches the given name (at
'background' with value
'#drawable/intercom_composer_circular_ripple'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'layout_height' with value
'#dimen/intercom_composer_toolbar_with_status_bar_height'). [ERROR] :
[ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'background' with value
'#color/intercom_composer_full_screen_toolbar'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'fitsSystemWindows' with value
'#bool/intercom_composer_fits_system_windows'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'paddingTop' with value
'#dimen/intercom_composer_toolbar_content_offset'). [ERROR] :
[ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'layout_height' with value
'#dimen/intercom_composer_toolbar_with_status_bar_height'). [ERROR] :
[ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'background' with value
'#color/intercom_composer_full_screen_toolbar'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'fitsSystemWindows' with value
'#bool/intercom_composer_fits_system_windows'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'paddingTop' with value
'#dimen/intercom_composer_toolbar_content_offset').
Thanks in advance!

Error installing Oozie 4.2.0

While trying to execute mkdistro.sh getting the following error:
[ERROR]
[ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.apache.oozie:oozie-main:4.2.0: Could not transfer artifact org.apache:apache:pom:16 from/to central (http://repo1.maven.org/maven2): repo1.maven.org: unknown error and 'parent.relativePath' points at wrong local POM # line 22, column 13
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.oozie:oozie-main:4.2.0 (/usr/local/Oozie_4.2.0_O/oozie-4.2.0/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.apache.oozie:oozie-main:4.2.0: Could not transfer artifact org.apache:apache:pom:16 from/to central (http://repo1.maven.org/maven2): repo1.maven.org: unknown error and 'parent.relativePath' points at wrong local POM # line 22, column 13: Unknown host repo1.maven.org: unknown error -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
System information:
Hadoop Version: 2.4.0
Maven Version: 3.3.9
Oozie: 4.2.0
How can I solve this error?

Titanium Module not working (Requires License ?)

I am new to titanium (alloy). I am trying to use a Barcode Scanner module (Redlaser). I am getting the following error while trying to start scanning
[ERROR] : StatusManager: Problem reading license file
[ERROR] : StatusManager: java.io.FileNotFoundException: RedLaser_License.xml
Do all the modules required licenses (XML) to run ?
When I view for the scanner comes up, it does not show anything - just a black screen.
Entire Error:
[ERROR] : StatusManager: Problem reading license file
[ERROR] : StatusManager: java.io.FileNotFoundException: RedLaser_License.xml
[ERROR] : StatusManager: at android.content.res.AssetManager.openAsset(Native Method)
[ERROR] : StatusManager: at android.content.res.AssetManager.open(AssetManager.java:316)
[ERROR] : StatusManager: at android.content.res.AssetManager.open(AssetManager.java:290)
[ERROR] : StatusManager: at RLSDK.c.a(RLSDK_:692)
[ERROR] : StatusManager: at RLSDK.c.a(RLSDK_:168)
[ERROR] : StatusManager: at com.ebay.redlasersdk.BarcodeScanActivity.onCreate(RLSDK_:256)
[ERROR] : StatusManager: at ti.redlaser.ScannerActivity.onCreate(ScannerActivity.java:64)
[ERROR] : StatusManager: at android.app.Activity.performCreate(Activity.java:5248)
[ERROR] : StatusManager: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
[ERROR] : StatusManager: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)
[ERROR] : StatusManager: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)
[ERROR] : StatusManager: at android.app.ActivityThread.access$800(ActivityThread.java:139)
[ERROR] : StatusManager: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
[ERROR] : StatusManager: at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] : StatusManager: at android.os.Looper.loop(Looper.java:136)
[ERROR] : StatusManager: at android.app.ActivityThread.main(ActivityThread.java:5086)
[ERROR] : StatusManager: at java.lang.reflect.Method.invokeNative(Native Method)
[ERROR] : StatusManager: at java.lang.reflect.Method.invoke(Method.java:515)
[ERROR] : StatusManager: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
[ERROR] : StatusManager: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
[ERROR] : StatusManager: at dalvik.system.NativeStart.main(Native Method)
Nope. In this case, you need register at RedLaser Developer Portal
For iOS RedLaser_License.xml must be at Resources folder, in the other hand, for Android the license file must be at platform/android/bin/assets directory where platform are at the same level of Resources folder.
For more information: Documentation RedLaser Module
I hope my answer helps you :)

deploy app on to android with titanium

I havejust started having a play with Titanium to build a few small apps.
I have used one of the examples you can download and works fine on the mobile web preview.
I have connected my Samsung S3 and have tried deploying it to the that.
I get the following errors:
[TRACE] Writing out AndroidManifest.xml
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "C:\Users\danyob\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 2553, in <module>
[ERROR] builder.build_and_run(True, avd_id, device_args=device_args, debugger_host=debugger_host, profiler_host=profiler_host)
[ERROR] File "C:\Users\danyob\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 2264, in build_and_run
[ERROR] self.manifest_changed = self.generate_android_manifest(compiler)
[ERROR] File "C:\Users\danyob\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 1404, in generate_android_manifest
[ERROR] '-I', self.android_jar], warning_regex=r'skipping')
[ERROR] File "C:\Users\danyob\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\run.py", line 38, in run
[ERROR] print "[DEBUG] %s" % subprocess.list2cmdline(args_to_log)
[ERROR] File "C:\Users\danyob\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1338515509\python\lib\subprocess.py", line 580, in list2cmdline
[ERROR] needquote = (" " in arg) or ("\t" in arg) or not arg
[ERROR] TypeError: argument of type 'NoneType' is not iterable
[ERROR] : Build process exited with code 1
[ERROR] : Project failed to build after 792ms
Anybody able to help?
As mentioned above this is an example app from titanium. It's the Geocoder one..
Cheers,
Dan
The 'NoneType' is not iterable is a recent problem with Android updating thier SDK and it takes a little time for Appcelerator to release an SDK update of their own to accommodate.
here is more info:
http://developer.appcelerator.com/blog/2013/05/updating-to-android-r22-tools.html
others have solved it by creating sym links to the moved files: https://developer.appcelerator.com/question/152497/titanium-sdk-310-error-typeerror-argument-of-type-nonetype-is-not-iterable-on-building-android-app