我一直在開發Android Studio 2.1.3的一個Android應用程序。最近我更新了Android Studio到2.2.3。現在我的應用程序給出的應用程序:compilieDebugJavaWithJavac錯誤。 下面是截圖 我的JDK位置 我發現的唯一的區別是在舊版本我已經使用默認的JDK。現在使用推薦的一個。如何解決此編譯器錯誤。 我試過清理,和其他的東西。但沒用。 全日誌 編譯失敗的應用程序:compilieDebugJavaWithJavac
我的日誌輸出
Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:app:clean
:app:buildInfoDebugLoader
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:prepareComAndroidSupportAppcompatV72311Library
:app:prepareComAndroidSupportCardviewV72330Library
:app:prepareComAndroidSupportDesign2311Library
:app:prepareComAndroidSupportPaletteV72501Library
:app:prepareComAndroidSupportRecyclerviewV72501Library
:app:prepareComAndroidSupportSupportCompat2501Library
:app:prepareComAndroidSupportSupportCoreUi2501Library
:app:prepareComAndroidSupportSupportCoreUtils2501Library
:app:prepareComAndroidSupportSupportV42311Library
:app:prepareComMcxiaokeVolleyLibraryAar100Library
:app:prepareComPaypalSdkPaypalAndroidSdk2131Library
:app:prepareIoCardAndroidSdk530Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:processDebugManifest
:app:processDebugResources
:app:generateDebugSources
:app:mockableAndroidJar UP-TO-DATE
:app:preDebugUnitTestBuild UP-TO-DATE
:app:prepareDebugUnitTestDependencies
:app:preDebugAndroidTestBuild UP-TO-DATE
:app:prepareDebugAndroidTestDependencies
:app:compileDebugAndroidTestAidl
:app:processDebugAndroidTestManifest
:app:compileDebugAndroidTestRenderscript
:app:generateDebugAndroidTestBuildConfig
:app:generateDebugAndroidTestResValues
:app:generateDebugAndroidTestResources
:app:mergeDebugAndroidTestResources
:app:processDebugAndroidTestResources
:app:generateDebugAndroidTestSources
:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
\Services\MusicService.java:454: error: cannot find symbol
musicPlayerNotificationbuilder.setCustomBigContentView(remoteViews);
^
symbol: method setCustomBigContentView(RemoteViews)
location: variable musicPlayerNotificationbuilder of type Builder
\Services\MusicService.java:472: error: cannot find symbol
musicPlayerNotificationbuilder.setCustomBigContentView(remoteViews);
^
symbol: method setCustomBigContentView(RemoteViews)
location: variable musicPlayerNotificationbuilder of type Builder
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
:app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.754 secs
的build.gradle文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 17
versionName "2.0.5"
signingConfig signingConfigs.config
ndk {
moduleName = "moduleName"
}
}
sourceSets {
main {
jniLibs.srcDir 'jniLibs'
}
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:recyclerview-v7:+'
compile 'com.android.support:palette-v7:+'
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.parse:parse-android:1.+'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'com.paypal.sdk:paypal-android-sdk:2.13.1'
// CardView
compile 'com.android.support:cardview-v7:23.3.+'
// RecyclerView
compile 'com.android.support:recyclerview-v7:23.3.+'
}
你可以發佈整個錯誤日誌? – Raghavendra
你有看到編譯器錯誤輸出嗎? –
爲什麼只發布截圖?你能複製並粘貼完整的錯誤嗎? – Raghavendra