2016-05-06 60 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' 
} 

我已生成使用代码生成招摇一个罐子,并放置在我的应用程序的文件夹lib在Android工作室。它没有被反编译,也就是说,我无法在这里看到我的jar的类。 我试过无效缓存/重新启动。它有时候有效。 但它不工作了。任何帮助将不胜感激。反编译自生成的lib罐子Android Studio中

+0

它是Android项目?你使用什么构建工具? –

回答

1

你可能丢失在build.gradle是这样的:

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

我在build.gradle中添加了compile fileTree(dir:'libs',include:['* .jar'])。 – rcde0

+0

你同步后还没有看到图书馆? –

+0

不,我无法看到它。我在que上插入了上面的快照。 – rcde0