使用 8.3.1.GA Ti SDK 创建示例移动模块应用程序。试图打包模块。
Expected:
Module should be packaged without any errors.
实际的:
抛出以下错误
2020-04-07T07:14:28.008Z | 调试 | [插件加载] 0ms /Users/pc270889/.appcelerator/install/7.1.2/package/appc.js
2020-04-07T07:14:28.078Z | 调试 | [插件加载] 67ms /Users/pc270889/.appcelerator/install/7.1.2/package/node_modules/appc-cli-titanium/appc.js
2020-04-07T07:14:28.078Z | 调试 | 运行插件:/Users/pc270889/.appcelerator/install/7.1.2/package/node_modules/appc-cli-titanium
2020-04-07T07:14:28.081Z | 调试 | [插件加载] 1ms /Users/pc270889/.appcelerator/install/7.1.2/package/node_modules/arrow/appc.js
2020-04-07T07:14:28.108Z | 调试 | 运行插件:/Users/pc270889/.appcelerator/install/7.1.2/package/node_modules/arrow
2020-04-07T07:14:28.137Z | 追踪 | 插件“箭头”未能通过其“何时”功能检查,跳过...
2020-04-07T07:14:28.138Z | 追踪 | 通过函数为命令“运行”CLI 选项加载插件“钛”
2020-04-07T07:14:28.139Z | 追踪 | 通过数组为命令“运行”CLI 选项加载插件“钛”
2020-04-07T07:14:28.141Z | 追踪 | 使用以下插件执行命令“运行”:
[“钛”]
2020-04-07T07:14:28.143Z | 追踪 | 会话已加载到 opts.session
2020-04-07T07:14:28.144Z | 调试 | 钛下载上次检查:1586240964935
2020-04-07T07:14:29.078Z | 追踪 | getInstalledTiSdkInfo {
sdkPath: '/Users/pc270889/Library/Application Support/Titanium',
activeSDK: '8.3.1.GA'
}
2020-04-07T07:14:29.078Z | 调试 | 活动 SDK 信息 {
sdkPath: '/Users/pc270889/Library/Application Support/Titanium',
activeSDK: '8.3.1.GA'
}
2020-04-07T07:14:32.902Z | 调试 | 下载 {"modules":[{"id":"hyperloop","name":"Hyperloop","description":"在 Titanium 移动应用程序中获得对本机 API 的完全访问权限。","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":空,"版本":[{"平台":["iphone","android","windows"],"sdk_versions":"}]},{"id":"ti.cloudpush","name":"ti.cloudpush","description":"为 Android 应用程序启用移动后端服务推送通知。","guid":"2d542783- c83c-4597-bd61-1073aa16ece2","oses":["linux","win32","osx"],"platforms":["android"],"required":true,"partner":null,"版本":[{"平台":["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" "版本":"5.2.1","url":" https://downloads.platform.axway.com/modules/ti.cloudpush-android-5.2.1.zip"}]},{"id":"com.appcelerator.aca","name":"Appcelerator 崩溃分析","description":"启用 Appcelerator 崩溃分析。Appcelerator Crash Analytics 允许您识别和解决移动应用程序中的崩溃问题。","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."},{"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 | 调试 | 模块找到 com.appcelerator.aca iphone 1.4.3
2020-04-07T07:14:32.907Z | 调试 | 模块找到 com.appcelerator.aca android 1.4.3
2020-04-07T07:14:32.908Z | 调试 | com.appcelerator.aca iphone 最新版本 1.4.3
2020-04-07T07:14:32.908Z | 调试 | com.appcelerator.aca 安卓最新版本 1.4.3
2020-04-07T07:14:32.940Z | 追踪 | 无项目合金挂钩;跳过更新到 1.0.1
2020 年 4 月 7 日下午 12:44:34
操作系统
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
命令
/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:
[错误] : 支持的最低 SDK API 版本必须为 19 或更高版本,但当前设置为 16
<android> <manifest> <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="25" /> </manifest> </android>