Android 框架代码“;can';t解析符号“;在安卓工作室
我正试图通过Android Studio中的库代码进行调试。但它显示了未解决的符号,即在许多地方有红线 我的应用程序Android 框架代码“;can';t解析符号“;在安卓工作室,android,android-studio,gradle,Android,Android Studio,Gradle,我正试图通过Android Studio中的库代码进行调试。但它显示了未解决的符号,即在许多地方有红线 我的应用程序build.gradle看起来像: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.example.kuldeep.cu
build.gradle
看起来像:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.kuldeep.customview"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
}
我的项目build.gradle
文件是:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-beta2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
2个可能的原因:
gradlesync
同步你的gradle文件SDK管理器
完成此操作您正在查看TextView的代码,这是一个Android平台类,不是您应用程序的一部分。平台类可以引用不属于应用程序可见API的其他“包私有”类。Android studio为您提供了这样查看平台源代码的能力,这样您就可以看到它是如何工作的,但您不能对其进行更改,也无法访问SDK中所有实际编译的类
短篇故事是有规律的,也是人们期待的。如果您是在自己的应用程序代码(而不是平台类或附加库)中看到这一点的,那么您需要关注一些事情。
短篇故事是
-是否也有一个较长的故事?也就是说,是否有任何方法可以减少这些错误消息或更好地解决它们?因为使用调试器在查看Android源文件时非常困难,因为在大纲中除了错误指示之外几乎看不到任何东西(大部分是错误的)。。。