Guest User

Untitled

a guest
Jun 19th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. Test envioronment:
  2.  
  3. Operating System
  4. Name = Mac OS X
  5. Version = 10.13.1
  6. Architecture = 64bit
  7. # CPUs = 4
  8. Memory = 8589934592
  9. Node.js
  10. Node.js Version = 8.9.1
  11. npm Version = 5.5.1
  12. Titanium CLI
  13. CLI Version = 5.1.1
  14. Titanium SDK
  15. SDK Version = 7.2.0.GA ,
  16. Device: Huawei GR3 2017 Android
  17.  
  18. Test steps:
  19.  
  20.  
  21. 1.Create a classic project with Appcelerator cloud services enabled
  22. 2.Add cloudpoush module on it
  23. 3.Require cloudpoush module on app.js
  24. 4.Run with android device and the app is failed to build with a error message
  25.  
  26. [ERROR] : Failed to run dexer:
  27.  
  28. Sample Code:
  29.  
  30. /**
  31. * Create a new `Ti.UI.TabGroup`.
  32. */
  33. var tabGroup = Ti.UI.createTabGroup();
  34.  
  35. /**
  36. * Add the two created tabs to the tabGroup object.
  37. */
  38. tabGroup.addTab(createTab("Tab 1", "I am Window 1", "assets/images/tab1.png"));
  39. tabGroup.addTab(createTab("Tab 2", "I am Window 2", "assets/images/tab2.png"));
  40.  
  41. /**
  42. * Open the tabGroup
  43. */
  44. tabGroup.open();
  45.  
  46. /**
  47. * Creates a new Tab and configures it.
  48. *
  49. * @param {String} title The title used in the `Ti.UI.Tab` and it's included `Ti.UI.Window`
  50. * @param {String} message The title displayed in the `Ti.UI.Label`
  51. * @return {String} icon The icon used in the `Ti.UI.Tab`
  52. */
  53. function createTab(title, message, icon) {
  54. var win = Ti.UI.createWindow({
  55. title: title,
  56. backgroundColor: '#fff'
  57. });
  58.  
  59. var label = Ti.UI.createLabel({
  60. text: message,
  61. color: "#333",
  62. font: {
  63. fontSize: 20
  64. }
  65. });
  66.  
  67. win.add(label);
  68.  
  69. var tab = Ti.UI.createTab({
  70. title: title,
  71. icon: icon,
  72. window: win
  73. });
  74.  
  75. return tab;
  76. }
  77.  
  78.  
  79. // added during app creation. this will automatically login to
  80. // ACS for your application and then fire an event (see below)
  81. // when connected or errored. if you do not use ACS in your
  82. // application as a client, you should remove this block
  83. (function(){
  84. var cloudpush = require('ti.cloudpush');
  85. var ACS = require('ti.cloud'),
  86. env = Ti.App.deployType.toLowerCase() === 'production' ? 'production' : 'development',
  87. username = Ti.App.Properties.getString('acs-username-'+env),
  88. password = Ti.App.Properties.getString('acs-password-'+env);
  89.  
  90. // if not configured, just return
  91. if (!env || !username || !password) { return; }
  92. /**
  93. * Appcelerator Cloud (ACS) Admin User Login Logic
  94. *
  95. * fires login.success with the user as argument on success
  96. * fires login.failed with the result as argument on error
  97. */
  98. ACS.Users.login({
  99. login:username,
  100. password:password,
  101. }, function(result){
  102. if (env==='development') {
  103. Ti.API.info('ACS Login Results for environment `'+env+'`:');
  104. Ti.API.info(result);
  105. }
  106. if (result && result.success && result.users && result.users.length){
  107. Ti.App.fireEvent('login.success',result.users[0],env);
  108. } else {
  109. Ti.App.fireEvent('login.failed',result,env);
  110. }
  111. });
  112.  
  113. })();
  114.  
  115.  
  116.  
  117. Console logs:
  118.  
  119. [ERROR] : Failed to run dexer:
  120. [ERROR] :
  121. [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/appcelerator/aps/BuildConfig;
  122. [ERROR] : 1 error; aborting
  123. [ERROR] Application Installer abnormal process termination. Process exit value was 1
Add Comment
Please, Sign In to add comment