簡體   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