简体   繁体   English

错误:Gradle:...在解析ddf / minim / AudioBuffer.class时

[英]Error:Gradle: …while parsing ddf/minim/AudioBuffer.class

I'm using Android 2.2 and I can't compile into app because of an error 我使用的是Android 2.2,由于出错,我无法编译到应用程序中

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

It is made on processing. 它是在加工时制作的。

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')
}

Seems like Minim is not fully supported on Android. 似乎在Android上不完全支持Minim。 The problem might be you're using JDK 7 and Minim is using JDK 8 (just a guess). 问题可能是你正在使用JDK 7而Minim正在使用JDK 8(只是一个猜测)。 Although you can enable JDK 8 on Android , not all Java 8 features are supported yet. 虽然您可以在Android上启用JDK 8 ,但并不支持所有Java 8功能。

I recommend you using Minim-Android instead and see if it has all the features you need in your project. 我建议您使用Minim-Android ,看看它是否具有您项目中所需的所有功能。

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

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