gpt4 book ai didi

android - 黑屏启动android

转载 作者:行者123 更新时间:2023-12-03 06:03:33 25 4
gpt4 key购买 nike

当我在JVM上运行Java fx(渐变运行)时,一切正常,而当我在Android设备上运行它(渐变AndroidInstall)时,则看到黑屏,控制台日志中没有任何错误。
我的build.gradle:

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.0.9'
}
}

apply plugin: 'org.javafxports.jfxmobile'

repositories {
jcenter()
maven {
url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
}
}

mainClassName = 'it.wstech.talco.TAMainApplication'

dependencies {
compile 'com.gluonhq:charm:3.0.0'

compile fileTree(dir: '../mglib/build/libs', include: ['*.jar'])
compile fileTree(dir: '../mglib/lib', include: ['*.jar'])
compile fileTree(dir: '../nowapp/build/libs', include: ['*.jar'])
compile fileTree(dir: '../nowapp/lib', include: ['*.jar'])
compile fileTree(dir: 'lib', include: ['*.jar'])

androidRuntime 'com.gluonhq:charm-android:3.0.0'
iosRuntime 'com.gluonhq:charm-ios:3.0.0'
desktopRuntime 'com.gluonhq:charm-desktop:3.0.0'
embeddedRuntime 'com.gluonhq:charm-desktop:3.0.0'
}

jfxmobile {
android {
manifest = 'src/android/AndroidManifest.xml'
androidSdk="/Users/wstechsrl/Desktop/Android/sdk"
signingConfig {
storeFile file('/opt/modja/workspace-fx/n_talco/softws-keystore')
storePassword 'wstechsrl'
keyAlias 'ws-keystore'
keyPassword 'xxxxx'
}

}
ios {
infoPList = file('src/ios/Default-Info.plist')
forceLinkClasses = [
'com.gluonhq.**.*',
'io.datafx.**.*',
'javax.annotations.**.*',
'javax.inject.**.*',
'javax.json.**.*',
'org.glassfish.json.**.*'
]
}
}

我的控制台:
:compileJava UP-TO-DATE
:compileRetrolambdaMain UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:compileAndroidJava UP-TO-DATE
:compileRetrolambdaAndroid SKIPPED
:compileEmbeddedJava UP-TO-DATE
:compileRetrolambdaEmbedded SKIPPED
:compileTestJava UP-TO-DATE
:compileRetrolambdaTest SKIPPED
:compileRetrolambda UP-TO-DATE
:mergeClassesIntoJar
:validateManifest
:collectMultiDexComponents
:shrinkMultiDexComponents
:createMainDexList
:dex
:mergeAndroidAssets
:mergeAndroidResources
Crunching single PNG file: /opt/modja/workspace-fx/n_talco/src/android/res/mipmap-ldpi/ta_icon.png
Output file: /opt/modja/workspace-fx/n_talco/build/javafxports/tmp/android/resources/res/mipmap-ldpi-v4/ta_icon.png
Crunching single PNG file: /opt/modja/workspace-fx/n_talco/src/android/res/mipmap-hdpi/ta_icon.png
Output file: /opt/modja/workspace-fx/n_talco/build/javafxports/tmp/android/resources/res/mipmap-hdpi-v4/ta_icon.png
Crunching single PNG file: /opt/modja/workspace-fx/n_talco/src/android/res/mipmap-xxhdpi/ta_icon.png
Output file: /opt/modja/workspace-fx/n_talco/build/javafxports/tmp/android/resources/res/mipmap-xxhdpi-v4/ta_icon.png
Crunching single PNG file: /opt/modja/workspace-fx/n_talco/src/android/res/mipmap-xxxhdpi/ta_icon.png
Output file: /opt/modja/workspace-fx/n_talco/build/javafxports/tmp/android/resources/res/mipmap-xxxhdpi-v4/ta_icon.png
Crunching single PNG file: /opt/modja/workspace-fx/n_talco/src/android/res/mipmap-mdpi/ta_icon.png
Output file: /opt/modja/workspace-fx/n_talco/build/javafxports/tmp/android/resources/res/mipmap-mdpi-v4/ta_icon.png
Crunching single PNG file: /opt/modja/workspace-fx/n_talco/src/android/res/mipmap-xhdpi/ta_icon.png
Output file: /opt/modja/workspace-fx/n_talco/build/javafxports/tmp/android/resources/res/mipmap-xhdpi-v4/ta_icon.png
:processAndroidResources UP-TO-DATE
:processAndroidResourcesDebug
:validateSigningDebug
:apkDebug
:zipalignDebug
:androidInstall
Installed on device.

最佳答案

在“应用程序管理器”->“您的应用程序”->“权限”中检查 list 文件中定义的权限是否被允许。

关于android - 黑屏启动android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40215844/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com