Pau*_*est 6 android intellij-idea android-studio
在Android Studio支持库appcompat(for ActionBar)中定义为Gradle依赖项.
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
}
Run Code Online (Sandbox Code Playgroud)
这也解决了获得v4的问题.
点击进入课程时如何查看源代码?
例如 android.support.v4.widget.DrawerLayout
目前Android Studio说
// IntelliJ API从类文件生成的反编译器存根源
//方法的实现不可用
根据 Paul Verest 所做的上述研究......
IDE:Android Studio 1.3.2
这是一个两步过程:考虑这个示例 build.gradle
1) 将以下内容添加到您的 build.gradle (Module:app) - 搜索下面的 2 //Add comments。
apply plugin: 'com.android.application'
apply plugin: 'idea' //Add
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.mycompany.android.myapp"
minSdkVersion 16
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.0'
}
//Add
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
Run Code Online (Sandbox Code Playgroud)
2)重建项目。
在此之后,如果您想在 Android Studio 中查看源代码,它将拉出源代码 *.java 而不是反编译的 *.class
| 归档时间: |
|
| 查看次数: |
2639 次 |
| 最近记录: |