android studio布局无法点击,bug__android studio 出现布局文件不提示,且点击代码不能跟踪代码...

1,点击布局文件,出现  Cannot find declaration to  go to ?

且 点击代码不能跟踪代码?

把 项目的build.gradle 中的  compileSdkVersion 23  版本设置最高。

apply plugin: ‘com.android.application‘

android {

compileSdkVersion 23

buildToolsVersion "23.0.2"

defaultConfig {

applicationId "com.foryou.agent"

minSdkVersion 11

targetSdkVersion 23

}

buildTypes {

release {

minifyEnabled false

proguardFiles getDefaultProguardFile(‘proguard-android.txt‘), ‘proguard-rules.txt‘

}

}

//这个是解决lint报错的代码

lintOptions {

abortOnError false

// 防止在发布的时候出现因MissingTranslation导致Build Failed!

disable ‘MissingTranslation‘

}

}

dependencies {

compile ‘com.android.support:support-v4:23.3.0‘

compile project(‘:ptr-lib‘)

compile project(‘:BDIntegrationSDK_LibProject‘)

compile ‘com.google.code.gson:gson:1.6‘

compile files(‘libs/BaiduLBS_Android.jar‘)

compile files(‘libs/GetuiExt-2.0.3.jar‘)

compile files(‘libs/GetuiSdk2.4.1.0.jar‘)

compile files(‘libs/pinyin4j-2.5.0.jar‘)

compile files(‘libs/umeng-analytics-v5.4.1.jar‘)

compile files(‘libs/universal-image-loader-1.9.3.jar‘)

compile files(‘libs/volley.jar‘)

debugCompile ‘com.squareup.leakcanary:leakcanary-android:1.3.1‘

releaseCompile ‘com.squareup.leakcanary:leakcanary-android-no-op:1.3.1‘

compile ‘io.reactivex:rxandroid:1.1.0‘

// Because RxAndroid releases are few and far between, it is recommended you also

// explicitly depend on RxJava‘s latest version for bug fixes and new features.

compile ‘io.reactivex:rxjava:1.1.0‘

// testCompile ‘junit:junit:4.12‘

// // Android Testing Support Library‘s runner and rules

// testCompile "com.android.support.test:runner:0.4.1"

// testCompile "com.android.support.test:rules:0.4.1"

}

原文:http://www.cnblogs.com/awkflf11/p/5622392.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值