gpt4 book ai didi

android-studio - 在Android Studio中反编译lib中自生成的jar

转载 作者:行者123 更新时间:2023-12-03 07:18:49 25 4
gpt4 key购买 nike

apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'com.github.triplet.play'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.prototype"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
testCoverageEnabled = false
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
testCompile "org.mockito:mockito-core:1.10.19"
testCompile 'org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:0.31'
}

我已经使用 swagger codegen 生成了一个 jar,并将其放置在 Android studio 中我的应用程序的 lib 文件夹中。它没有被反编译,即,我无法在这里看到我的 jar 的类。我尝试过使缓存无效/重新启动。以前有时会起作用。但它不再起作用了。任何帮助将不胜感激。

最佳答案

您可能在 build.gradle 中缺少类似以下内容:

compile files('libs/your-jar-filename.jar')

关于android-studio - 在Android Studio中反编译lib中自生成的jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37071543/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com