繁体   English   中英

JavaFX android应用程序发布禁用调试

[英]JavaFX android app release disable debug

我一直在尝试将我的第一个android JavaFX应用程序上传到Google Play商店,但是它表示调试处于活动状态,我无法继续上传。 我一直在使用带有JavaFXPorts的Gluon插件和Gradle构建选项中的“ androidRelease”的Eclipse。 这是我的build.gradle:

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

apply plugin: 'org.javafxports.jfxmobile'

repositories {
    jcenter()
}

mainClassName = 'com.eg0.***'

jfxmobile {
    android {
        compileSdkVersion = 25
        manifest = 'src/android/AndroidManifest.xml'
        androidSdk = 'C:/Users/Eg0/AppData/Local/Android/Sdk'
        signingConfig {
            storeFile file('***.keystore')
            storePassword '***'
            keyAlias '***'
            keyPassword '***'
        }
    }
}

这是我的清单文件:

<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.eg0" android:versionCode="1" android:versionName="1.0">
        <supports-screens android:xlargeScreens="true"/>
        <uses-permission android:name="android.permission.INTERNET"/>
        <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="21"/>
        <application android:label="***" android:name="android.support.multidex.MultiDexApplication" android:icon="@mipmap/ic_launcher">
                <activity android:name="javafxports.android.FXActivity" android:label="Windows Mixer" android:configChanges="orientation|screenSize" android:screenOrientation="portrait">
                        <meta-data android:name="main.class" android:value="com.eg0.***"/>
                        <intent-filter>
                                <action android:name="android.intent.action.MAIN"/>
                                <category android:name="android.intent.category.LAUNCHER"/>
                        </intent-filter>
                </activity>
        </application>
</manifest>

我通过在清单文件中添加android:debuggable =“ false”标志来解决。 即使文档说没有指定,默认情况下它也是错误的。 现在它也给我一个警告,说“警告:AndroidManifest.xml已经定义了可调试的(在http://schemas.android.com/apk/res/android中 );使用清单中的现有值。”,但我想那是一直都是问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM