1

Android 2.2 を使用していますが、エラーのためにアプリにコンパイルできません

-Error:Gradle: unsupported class file version 52.0
-Error:Gradle: ...while parsing ddf/minim/AudioBuffer.class

加工して作っています。

apply plugin: 'com.android.application'


android {
    compileSdkVersion 23
    buildToolsVersion "25.0.0"

    defaultConfig {
        applicationId "processing.test.flappyspace"
        minSdkVersion 15
        targetSdkVersion 23
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
    dexOptions {

    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
}

dependencies {
    compile 'com.android.support:support-v4:23.4.0'
    compile files('libs/jl1.0.1.jar')
    compile files('libs/jsminim.jar')
    compile files('libs/minim.jar')
    compile files('libs/mp3spi1.9.5.jar')
    compile files('libs/processing-core.jar')
    compile files('libs/tritonus_aos.jar')
    compile files('libs/tritonus_share.jar')
}
4

1 に答える 1

0

Minim は Android では完全にはサポートされていないようです。問題は、JDK 7 を使用していて、Minim が JDK 8 を使用している可能性があります (単なる推測です)。Android で JDK 8 を有効にすることはできますが、まだすべての Java 8 機能がサポートされているわけではありません。

代わりにMinim-Androidを使用して、プロジェクトに必要なすべての機能があるかどうかを確認することをお勧めします。

于 2016-11-22T19:32:19.367 に答える