无法访问本地存储服务

时间:2017-03-18 02:18:38

标签: gluon-mobile

类似的问题,但没有帮助:JavaFXPorts(Gluon Plugin) Saving Files on Android

我想访问桌面和移动设备上的本地存储。现在我正在桌面上测试。每当我启动程序时,我在错误流中得到以下内容:

Services.get(StorageService.class);

buildscript { repositories { jcenter() } dependencies { classpath 'org.javafxports:jfxmobile-plugin:1.3.2' } } apply plugin: 'org.javafxports.jfxmobile' apply plugin: 'eclipse' jfxmobile { downConfig { version = '3.0.0' plugins 'display', 'lifecycle', 'statusbar', 'storage' // <-- storage included by default } android { compileSdkVersion = 23 manifest = 'src/android/AndroidManifest.xml' } ios { infoPList = file('src/ios/Default-Info.plist') forceLinkClasses = [ 'com.gluonhq.**.*', 'javax.annotations.**.*', 'javax.inject.**.*', 'javax.json.**.*', 'org.glassfish.json.**.*' ] } } eclipse { classpath { downloadJavadoc = true downloadSources = true } } repositories { jcenter() maven { url 'http://nexus.gluonhq.com/nexus/content/repositories/releases' } } mainClassName = 'com.foo.MainClass' dependencies { compile 'com.gluonhq:charm:4.3.1' } task wrapper(type: Wrapper) { gradleVersion = '3.4' } 返回一个空的可选项。

修剪后的gradle构建文件是

jfxmobile {
    downConfig {
        version = '3.0.0'

不确定这个版本是什么

4.3.1

因为如果我将其更改为dependencies { Gradle会给我一个错误(如果相关可以发布)。

我也尝试添加到desktopRuntime "com.gluonhq:charm-down-desktop:4.3.1"

$stmt = $mysqli->prepare("SELECT id FROM user WHERE groupId = ? ORDER BY id LIMIT ? OFFSET ?");
$stmt->bind_param("iii", $args['groupId'], $pageSize, $offset);
$stmt->execute();
$stmt->bind_result($id);

$userIds= array();

while ($stmt->fetch()) {
    $userIds[] = $id;
}

$stmt= $mysqli->prepare("SELECT a.id as attendantId, a.firstName, a.lastName, c.id as caringId, c.startDate, c.endDate FROM attendant a LEFT JOIN caring c ON c.attendantId = a.id WHERE a.id IN (?)");
$stmt->bind_param('i', $userIds);
$stmt->bind_param('i', implode(',', $userIds));

就像链接的问题一样,但它没有做任何事情。

0 个答案:

没有答案