Unable to package Appcelerator android module - appcelerator-titanium

Created sample mobile module app with 8.3.1.GA Ti SDK.
Tried to package the module.
Expected:
Module should be packaged without any errors.
Actual:
Throwing the below error
2020-04-07T07:14:28.008Z | DEBUG | [PLUGIN-LOAD] 0ms
/Users/pc270889/.appcelerator/install/7.1.2/package/appc.js
2020-04-07T07:14:28.078Z | DEBUG | [PLUGIN-LOAD] 67ms
/Users/pc270889/.appcelerator/install/7.1.2/package/node_modules/appc-cli-titanium/appc.js
2020-04-07T07:14:28.078Z | DEBUG | run plugin:
/Users/pc270889/.appcelerator/install/7.1.2/package/node_modules/appc-cli-titanium
2020-04-07T07:14:28.081Z | DEBUG | [PLUGIN-LOAD] 1ms
/Users/pc270889/.appcelerator/install/7.1.2/package/node_modules/arrow/appc.js
2020-04-07T07:14:28.108Z | DEBUG | run plugin:
/Users/pc270889/.appcelerator/install/7.1.2/package/node_modules/arrow
2020-04-07T07:14:28.137Z | TRACE | plugin "arrow" failed its "when"
function check, skipping...
2020-04-07T07:14:28.138Z | TRACE | loading plugin "titanium" for
command "run" CLI options via function
2020-04-07T07:14:28.139Z | TRACE | loading plugin "titanium" for
command "run" CLI options via array
2020-04-07T07:14:28.141Z | TRACE | executing command "run" with the
following plugins:
["titanium"]
2020-04-07T07:14:28.143Z | TRACE | session already loaded in
opts.session
2020-04-07T07:14:28.144Z | DEBUG | Titanium Downloads Last Checked:
1586240964935
2020-04-07T07:14:29.078Z | TRACE | getInstalledTiSdkInfo {
sdkPath: '/Users/pc270889/Library/Application Support/Titanium',
activeSDK: '8.3.1.GA'
}
2020-04-07T07:14:29.078Z | DEBUG | active sdk info {
sdkPath: '/Users/pc270889/Library/Application Support/Titanium',
activeSDK: '8.3.1.GA'
}
2020-04-07T07:14:32.902Z | DEBUG | to download
{"modules":[{"id":"hyperloop","name":"Hyperloop","description":"Gain
complete access to native APIs in your Titanium mobile
applications.","guid":"99a136cd-4e51-40da-bcdb-d514f5895fb5","version":"1.2.8","url":"https://downloads.platform.axway.com/modules/hyperloop-1.2.8.zip","min_mobilesdk_version":"5.4.0","oses":["linux","win32","osx"],"platforms":["iphone","android"],"required":true,"partner":null,"versions":[{"platforms":["iphone","android","windows"],"sdk_versions":">=6.0.0
<7.0.0","version":"2.2.3","url":"https://downloads.platform.axway.com/modules/hyperloop-2.2.3.zip"}]},{"id":"ti.cloudpush","name":"ti.cloudpush","description":"Enables
Mobile Backend Services Push Notifications for Android
applications.","guid":"2d542783-c83c-4597-bd61-1073aa16ece2","oses":["linux","win32","osx"],"platforms":["android"],"required":true,"partner":null,"versions":[{"platforms":["android"],"sdk_versions":">=7.5.0
<8.0.0","version":"6.0.0","url":"https://downloads.platform.axway.com/modules/ti.cloudpush-android-6.0.0.zip"},{"platforms":["android"],"sdk_versions":">=7.0.0
<7.5.0","version":"5.2.1","url":"https://downloads.platform.axway.com/modules/ti.cloudpush-android-5.2.1.zip"}]},{"id":"com.appcelerator.aca","name":"Appcelerator
Crash Analytics","description":"Enables Appcelerator Crash Analytics.
Appcelerator Crash Analytics allows you to identify and troubleshoot
crashes in your mobile
applications.","guid":"ec713280-46fb-46ad-b9af-4435dfca143b","oses":["linux","win32","osx"],"platforms":["iphone","android"],"required":true,"partner":"aca","download":true,"versions":[{"platforms":["iphone","android"],"sdk_versions":">=9.0.0","version":"2.0.0","url":"https://downloads.platform.axway.com/modules/com.appcelerator.aca-2.0.0.zip"},{"platforms":["iphone","android"],"sdk_versions":">=8.1.1 <9.0.0","version":"1.4.3","url":"https://downloads.platform.axway.com/modules/com.appcelerator.aca-1.4.3.zip"},{"platforms":["iphone","android"],"sdk_versions":">=8.0.0 <8.1.1","version":"1.3.0","url":"https://downloads.platform.axway.com/modules/com.appcelerator.aca-1.3.0.zip"}]}],"components":[]}
2020-04-07T07:14:32.907Z | DEBUG | Module Found com.appcelerator.aca
iphone 1.4.3
2020-04-07T07:14:32.907Z | DEBUG | Module Found com.appcelerator.aca
android 1.4.3
2020-04-07T07:14:32.908Z | DEBUG | com.appcelerator.aca iphone Latest
Version 1.4.3
2020-04-07T07:14:32.908Z | DEBUG | com.appcelerator.aca android
Latest Version 1.4.3
2020-04-07T07:14:32.940Z | TRACE | No project alloy hook; skipping
update to 1.0.1
4/7/2020, 12:44:34 PM
Operating System
Name = Mac OS X
Version = 10.14.6
Architecture = 64bit
# CPUs = 8
Memory = 17179869184
Node.js
Node.js Version = 12.14.0
npm Version = 6.13.4
Titanium CLI
CLI Version = 5.2.2
Titanium SDK
SDK Version = 8.3.1.GA
SDK Path = /Users/pc270889/Library/Application Support/Titanium/mobilesdk/osx/8.3.1.GA
Target Platform = android
Command
/usr/local/bin/node /Users/pc270889/.appcelerator/install/7.1.2/package/node_modules/titanium/lib/titanium.js build --platform android --project-dir /Users/pc270889/Documents/Arun/kofaxModuleWorkspace/samplemodule/android --build-only --log-level trace --no-colors --no-progress-bars --no-prompt --no-banner --prompt-type socket-bundle --prompt-port 49898 --config-file /var/folders/wj/xt_k91vj6xb8g84bj4lswjtc0000gn/T/build-1586243668144.json --no-banner --project-dir /Users/pc270889/Documents/Arun/kofaxModuleWorkspace/samplemodule/android
Update the android:minSdkVersion in the tiapp.xml or custom AndroidManifest to at least 19:
[ERROR] : The minimum supported SDK API version must be 19 or newer,
but is currently set to 16
<android>
<manifest>
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="25" />
</manifest>
</android>

Related

Where is FindMySQL.cmake in recent Linux distributions

Trying to build a software, the cmake CMakeFileList.txt ask for MySQL. I am unable to find this files in my modules, neither in the uninstalled libraries.
Considering how popular is MySQL, I guess I am missing something.
Where to find FindMySQL.cmake for MySQL client development library?
Or
What is wrong, what changed, what is the cause of this library being unavailable?
Note: I am using Ubuntu 17.
Obvious tries to solve the issue:
Searching on the Ubuntu package search page.
Using apt-cache search
Searching for FindMySQL on the web
Edited for answering #Tsyvarev
The error is:
CMake Error at CMakeLists.txt:155 (message):
MySQL not found
Searching in /usr/share/cmake-3.7/Modules/
find . -iname "mysql"
I get no results, so FindMySQLConfig or Findmysql-config are not helping.
apt-get install libmysqlclient libmysql++-dev libmysql++3v5
Are installed and up to date.
Software usually declares dependencies, but don't includes other software inside. This is the common way.
Search on https://packages.ubuntu.com/ yields:
| File | Packages |
|-------------------------------------------------------------------------|------------------------------------|
| /usr/lib/Wt/cmake/WtFindMysql.txt | witty-examples |
| /usr/lib/aarch64-linux-gnu/cmake/KF5KDELibs4Support/FindMySQL.cmake | libkf5kdelibs4support-dev [arm64] |
| /usr/lib/arm-linux-gnueabihf/cmake/KF5KDELibs4Support/FindMySQL.cmake | libkf5kdelibs4support-dev [armhf] |
| /usr/lib/i386-linux-gnu/cmake/KF5KDELibs4Support/FindMySQL.cmake | libkf5kdelibs4support-dev [i386] |
| /usr/lib/powerpc64le-linux-gnu/cmake/KF5KDELibs4Support/FindMySQL.cmake | libkf5kdelibs4support-dev [ppc64el]|
| /usr/lib/s390x-linux-gnu/cmake/KF5KDELibs4Support/FindMySQL.cmake | libkf5kdelibs4support-dev [s390x] |
| /usr/lib/x86_64-linux-gnu/cmake/KF5KDELibs4Support/FindMySQL.cmake | libkf5kdelibs4support-dev [amd64] |
| /usr/lib/x86_64-linux-gnu/hhvm/CMake/FindMySQL.cmake | hhvm-dev [amd64] |
| /usr/share/kde4/apps/cmake/modules/FindMySQL.cmake | kdelibs5-dev |
Which means that the MySQL maintainers don't bother supporting CMake. But others who use mysql have actually written that configuration script (and it's not that hard to write since it mostly uses PkgConfig).

ServiceMix 7.x : feature installs/starts but bundle dependency never starts

ServiceMix 7.0.1
Windows 7; Java 1.8.x
commons-io/commons-io/2.4/commons-io-2.4.jar (note: the jar is a bundle; does not need to be wrapped)
<features name="smx7-test" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
<feature name="smx7-test" version="1.0.0-SNAPSHOT">
<bundle dependency="true" start="true">mvn:commons-io/commons-io/2.4</bundle>
</feature>
Something different in ServiceMix 7.x (7.0.1) that I am missing or I need to configure a standard feature or other?
The commons-io jar/bundle dependency in the features.xml (above) never starts after the feature is installed/started. This is not isolated to just the commons-io jar/bundle. I have the same issue with the antlr-runtime-4.7.jar and commons-beanutils.jar among others. I have just setup a small sample test-case to quickly deploy and test using commons-io.
I start with a pristine servicemix 7.0.1 install.
I place the features.xml file (above) in the system repo: system/smx7/smx7-test/1.0.0-SNAPSHOT/smx7-test-1.0.0-SNAPSHOT-features.xml
I place the commons-io-2.4 jar in the system repo: system/commons-io/commons-io/2.4/commons-io-2.4.jar
Start servicemix 7.0.1 (servicemix.bat). All good so-far.
The feature installs fine with the following commands:
feature:repo-add mvn:smx7/smx7-test/1.0.0-SNAPSHOT/xml/features
feature:install smx7-test
I can do a feature:list | grep smx7-test and the feature shows as installed and started.
karaf#root>feature:list | grep smx7-test
smx7-test | 1.0.0.SNAPSHOT | x | Started | smx7-test
BUT a bundle:list in the karaf console indicates the common-io bundle is not in the listing. If i duplicate all above in servicemix 6.x all works as expected. That is the commons-io bundle is listed and started.
If i try to deploy a business layer bundle in the 7.0.1 instance above, that wants to import a commons-io package/class the business layer bundle will never start (shows only as installed). The error in the servicemix.log is as expected since the commons-io bundle never started :
missing requirement [test [222](R 222.2)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.io)(version>=1.4.0)(!(version>=2.0.0)))
Note: the commons-io-2.4 jar/bundle MANIFEST.MF Export-Package contents is/are backwards compatible hence the version parameters in the error above. I tried modifying my business layer bundle MANIFEST.MF to allow for the range indicated above and it had no impact.
Any ServiceMix 7 suggestions welcome!!

What should i do to resolve the issue. If the issue is Invalid device-id, then how should i change?

I installed the appcelerator on my windows 7 (64 bit) machine.
Then i created a new html based project for windows app development.
The issue is that When i run the emulator in Appcelerator, i get the following error :
[ERROR] : Invalid "--device-id" value "0"
For help, run: titanium help build
TRACE | titanium exited with exit code 1
ERROR | Error: ti run exited with error code 1
at ChildProcess. (C:\Users\NSPL10_Test.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\plugins\run.js:89:66)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
As you can read at http://docs.appcelerator.com/platform/latest/#!/guide/Installing_the_Windows_Phone_SDK you need Windows 8.1 64-bit Pro+

Ember-cli: Live reload not working

I started my first project with ember cli and I noticed that the live reload isn't working. When I start the development server, I get multiple error messages (see below). Changes to the code base are only available after a restart of the server.
$ ember server
version: 0.1.2
Livereload server on port 35729
Serving on http://0.0.0.0:4200/
2014-12-03 17:51 ember[16491] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-12-03 17:51 ember[16491] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
...
2014-12-03 17:51 ember[16491] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-12-03 17:51 ember[16491] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
Build successful - 1180ms.
Slowest Trees | Total
-------------------------------+----------------
Concat | 368ms
ES6Concatenator | 150ms
ES3SafeFilter | 149ms
JSHint - App | 104ms
JSHint - Tests | 80ms
At this stage I have the following packages/addons installed:
DEBUG: -------------------------------
DEBUG: Ember : 1.7.0
DEBUG: Ember Data : 1.0.0-beta.10
DEBUG: EmberFire : 1.3.1
DEBUG: Handlebars : 1.3.0
DEBUG: jQuery : 1.11.1
DEBUG: -------------------------------
Any idea what could cause this issue? It is quite annoying to restart the server for every change.
Thank you for your suggestions.
The error is essentially caused by FSEvents watching too many files. If you're using Sublime Text, try excluding node_modules/, tmp/, and dist/ from your project (add them to the folder_exclude_patterns array in your Sublime user preferences).
If you're not using Sublime, or if doing so doesn't fix the issue, try upgrading your version of Node and version of ember-cli to the latest versions, as well as installing watchman using brew install watchman if you have Homebrew installed/are on OS X (as the latest versions of ember-cli no longer rely on FSEvents.
Source: https://github.com/ember-cli/ember-cli/issues/1260#issuecomment-67549158
Add this parameters(liveReload and Watcher) to the file /.ember-cli and this will end with something like this:
{
/**
Ember CLI sends analytics information by default. The data is ...
*/
"disableAnalytics": false,
"liveReload": true,
"watcher": "polling"
}
/* Pooling, this is where the magic come, allow to edit file in the host and outside(EX: Virtual machines and servers relate) */

Ember 1.0.0: Ember.State has been moved into a plugin: https://github.com/emberjs/ember-states

I am migrating an Ember rc7 project to Ember 1.0.0. I have this unusual error:
Ember.State has been moved into a plugin: https://github.com/emberjs/ember-states
I have the error only if I use a combination of Ember.js 1.0.0 in combination with Ember data 0.13. If I include the extra ember-states lib, then everything works fine.
What is the reason of this change ? Why do I need an additional lib ?
If I use Ember.js 1.0.0 in combination with Ember data 1.0.0 beta.1, then this error does not occur.
I hope somebody can explain why this additional lib seems to be needed in some cases ?
Marc
According to this pull request Ember itself does not use Ember.State internally anymore, and as of this Ember Data commit Ember Data did not depend on the Ember.State implementation (a new/better way to handle internal state in Ember Data was used instead).
Since neither library has a dependency for Ember.State they moved it to its own package, which can be included manually if you still require it.
Github repository for Ember.State can be found here
Using this table you can see that when using Ember Data 0.13 and Ember 1.0.0, Ember Data 0.13 tries to use Ember.State, but Ember 1.0.0 does not provide it and causes your error.
+-------------------------+------------------+----------------------+
| Library | Uses Ember.State | Provides Ember.State |
+-------------------------+------------------+----------------------+
| Ember rc7 | no | yes |
| Ember 1.0.0 | no | no |
| Ember Data 0.13 | yes | no |
| Ember Data 1.0.0 beta 1 | no | no |
+-------------------------+------------------+----------------------+