sencha android packager.json(在windows上)
正在获取[ERR]java.lang.IllegalStateException:应为BEGIN\u对象,但为字符串 看起来像是JOSN解析错误,但我发现的所有提示都不起作用。项目构建得非常完美,my packager.json如下所示:sencha android packager.json(在windows上),android,windows,extjs,cmd,packaging,Android,Windows,Extjs,Cmd,Packaging,正在获取[ERR]java.lang.IllegalStateException:应为BEGIN\u对象,但为字符串 看起来像是JOSN解析错误,但我发现的所有提示都不起作用。项目构建得非常完美,my packager.json如下所示: { "applicationName":"firstapp", "applicationId":"com.parcello.firstapp", "versionString":"1.0", "iconName:":"resources
{
"applicationName":"firstapp",
"applicationId":"com.parcello.firstapp",
"versionString":"1.0",
"iconName:":"resources\icons\Icon.png",
"inputPath":"\",
"outputPath":"C:\Users\mitch\Desktop\touch-2.3.0\firstapp\and\",
"configuration":"Debug",
"platform":"Android",
"deviceType":"Universal",
"certificatePath":"C:\Users\mitch\Desktop\touch-2.3.0\firstapp\release.keystore",
"certificateAlias":"firstapp",
"sdkPath":"C:\Users\mitch\android-sdks",
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}
我的win命令中的完全错误是:
[ERR]java.lang.IllegalStateException:应为BEGIN\u对象,但为
第9行第26列的字符串
位于com.google.gson.internal.bind.ReflectTypeAdapterFactory$Adapter.ReadReflectTypeAdapterFactory.java:176
www.com.google.gson.gson.fromJsonGson.java:791
www.com.google.gson.gson.fromJsonGson.java:757
www.com.google.gson.gson.fromJsonGson.java:706
位于com.sencha.util.JsonUtil$ThreadSafeGson.fromJsonJsonUtil.java:228
位于com.sencha.util.JsonUtil.fromJsonJsonUtil.java:128
位于com.sencha.tools.pkg.Model$Package.loadModel.java:651
在com.sencha.tools.pkg.LocalRepository.verifyPackageLocalRepository.java:548
位于com.sencha.tools.pkg.LocalRepository.addPackageLocalRepository.java:351
位于com.sencha.command.pkg.AddCommand.executeAddCommand.java:28
任何想法,因此命令:
sencha app build native
他跑得不好
它是Touch2.3.0,带有:您提供的JSON无效,因为您没有转义反斜杠“\”字符 一旦将“\”更改为“\”,JSON即有效:
{
"applicationName":"firstapp",
"applicationId":"com.parcello.firstapp",
"versionString":"1.0",
"iconName:":"resources\\icons\\Icon.png",
"inputPath":"\\",
"outputPath":"C:\\Users\\mitch\\Desktop\\touch-2.3.0\\firstapp\\and\\",
"configuration":"Debug",
"platform":"Android",
"deviceType":"Universal",
"certificatePath":"C:\\Users\\mitch\\Desktop\\touch-2.3.0\\firstapp\\release.keystore",
"certificateAlias":"firstapp",
"sdkPath":"C:\\Users\\mitch\\android-sdks",
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}
试试这个
在路径中从“\”更改为“/”
sdkPath:D:/adt/adt bundle/sdk/tools的路径
:-