Failed to verify dex: Bad method handle type 7

后端 未结 2 1473
攒了一身酷
攒了一身酷 2020-12-10 10:43

I\'m trying to create a test example where I\'ve the contents of a TextView is set to the contents of a file stored in the IPFS.

I\'m using this repository for my fu

2条回答
  •  佛祖请我去吃肉
    2020-12-10 11:39

    Just experienced the same problem, it is because some library use Java 8 features, in your case it should be java-ipfs-api. To solve the problem, configure Android Gradle Plugin to support Java 8 by adding the following code to your build.gradle file, be sure to use latest Android gradle plugin:

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    

    solution taken from here.

提交回复
热议问题