2016-05-06 11 views
4
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スタジオで私のアプリケーションのlibフォルダに配置しました。それは逆コンパイルされていません。つまり、ここで私の瓶のクラスを見ることができません。 私は試しましたキャッシュを無効にする/再起動。時々前に働いた。 しかし、もう動作していません。どんな助けもありがとう。あなたは、おそらくのようなあなたのbuild.gradle何かに欠けてAndroidスタジオでlibの自己生成jarを逆コンパイルする

+0

はそれがAndroidのプロジェクトですか?どのビルドツールを使用していますか? –

答えて

1

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

私はbuild.gradleにfileTree(dir: 'libs'、include:['* .jar'])を追加しました。 – rcde0

+0

そして、同期後にまだライブラリが表示されませんか? –

+0

いいえ私はそれを見ることができません。上記のスナップショットをqueに挿入しました。 – rcde0

関連する問題