1, click on the layout file, appear cannot find declaration to go to?
and click Code can't track code?
Set the Compilesdkversion 23 version to the highest in the project's Build.gradle.
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 '
}
}
This is the code to solve the lint error.
lintoptions {
Abortonerror false
Prevents build failed! when publishing due to Missingtranslation
Disable ' missingtranslation '
}
}
dependencies {
Compile ' com.android.support:support-v4:23.3.0 '
Compile project (':p tr-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 is few and far between, it's 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"
}
Bug__android Studio appears without prompting for layout files, and clicking Code cannot track code