Titanium Android - 自定义模块。支持的源版本' RELEASE_6'少于-source' 1.7' 。

时间:2018-02-12 18:31:01

标签: android migration titanium appcelerator

我在我的一个自定义模块中使用了com.artfulbits.aiCharts jar,并且它与Ti SDK 5.4.0.GA配合使用。但是当我尝试将其迁移到新的SDK时,我得到以下错误 - JAVA VERSION相关错误

WITH source_table AS
(
    SELECT  
        ,GtDesc
        ,ErrDesc
        ,dt
        ,CONVERT(VARCHAR, dt, 103)  AS DateTrans
        ,FORMAT(dt, 'hh:mm tt')     AS HourTrans

    FROM
        Trans AS t

    INNER JOIN
        Gates AS g
        ON (g.CID = t.CID)

    WHERE 
        dt BETWEEN (CONVERT(DATETIME, '5/02/2018 7:00 AM', 103)) AND (CONVERT(DATETIME, '12/02/2018 7:00 PM', 103))
)
,source_table_ext AS
(
    SELECT 
        GtDesc
        ,ErrDesc
        ,dt
        ,ROW_NUMBER() OVER (PARTITION BY GtDesc, ErrDesc, DateTrans ORDER BY dt) AS date_line_num
        ,DateTrans
        ,HourTrans
    FROM source_table
)
,pivoted_table AS
(
    SELECT *
    FROM source_table_ext PIVOT (
        MAX(HourTrans)
        FOR DateTrans IN (
             [05/02/2018]
            ,[06/02/2018]
            ,[07/02/2018]
            ,[08/02/2018]
            ,[09/02/2018]
            ,[12/02/2018]
            ) 
    ) AS pvt
)

SELECT
    GtDesc
    ,ErrDesc
    ,MAX([05/02/2018]) AS [05/02/2018]
    ,MAX([06/02/2018]) AS [06/02/2018]
    ,MAX([07/02/2018]) AS [07/02/2018]
    ,MAX([08/02/2018]) AS [08/02/2018]
    ,MAX([09/02/2018]) AS [09/02/2018]
    ,MAX([12/02/2018]) AS [12/02/2018]

FROM
    pivoted_table

GROUP BY
    GtDesc, ErrDesc, date_line_num

ORDER BY
    GtDesc, ErrDesc, date_line_num

1 个答案:

答案 0 :(得分:0)

要使用最新的SDK,您需要更新工具链:

Node.js   
Node.js Version    = 8.9.1   
npm Version        = 5.5.1

Appcelerator CLI   
Installer          = 4.2.12
Core Package .     = 7.0.2

Titanium CLI   
CLI Version .      = 5.0.14
node-appc Version  = 0.2.41

检查您的JAVA版本(1.8.0_65),如果需要编译模块,请使用NDK 12.1.2977051