安装APK或共享程序包时出现“未安装应用程序”错误

时间:2019-03-24 16:25:08

标签: libgdx

我不知道自己的错是什么,在我的代码中,但我无法安装我的apk,我目前使用的libgdx 1.9.9具有推荐的设置

https://libgdx.badlogicgames.com/versions.html

文件gradle.build(项目):

 buildscript {

    repositories {
        mavenLocal()
        mavenCentral()
        maven { url "https://plugins.gradle.org/m2/" }
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.0'
    }
}

allprojects {
apply plugin: "eclipse"
apply plugin: "idea"

version = '1.0'
ext {
    appName = "Sample project"
    gdxVersion = '1.9.9'
    roboVMVersion = '2.3.5'
    box2DLightsVersion = '1.4'
    ashleyVersion = '1.7.0'
    aiVersion = '1.8.0'

    //gdxPayVersion = '0.12.0' // para pagos
}

repositories {
    mavenLocal()
    mavenCentral()
    google()
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}

gradle.build(Android):

代码:

    android {
    buildToolsVersion "28.0.3"
    compileSdkVersion 28
    ...
    defaultConfig {
        applicationId "com.sample"
        minSdkVersion 9
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
    }
}

gradle-wrapper.properties:

distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

我已经尝试过他们在这个论坛上说的话,但没有成功: LibGdx doesn't working after updating Gradle (Android Studio 3.0)

0 个答案:

没有答案