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!
Related
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.
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)
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?
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 :)
I try to integrate my module(for Android) to titanium app.
I Integrade it and after i added in tiapp.xml:
<modules>
<module platform="android" version="1">com.android.manager</module>
</modules>
I get error:
[ERROR] System Error while compiling Android classes.dex
[ERROR]
[ERROR] UNEXPECTED TOP-LEVEL EXCEPTION:
[ERROR] java.lang.IllegalArgumentException: already added: Lorg/w3c/dom/UserDataHandler;
[ERROR] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
[ERROR] at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
[ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:486)
[ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
[ERROR] at com.android.dx.command.dexer.Main.access$400(Main.java:67)
[ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
[ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
[ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
[ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
[ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:418)
[ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
[ERROR] at com.android.dx.command.dexer.Main.run(Main.java:206)
[ERROR] at com.android.dx.command.dexer.Main.main(Main.java:174)
[ERROR] at com.android.dx.command.Main.main(Main.java:91)
[ERROR] 1 error; aborting
the main problem was, that the name in: {code} #Kroll.module(name="SensorManager", id="com.android.manager") the id was not the same it was: com.android.manager.Name......