Androidスタジオ2.1.3でAndroidアプリケーションを開発しています。最近私はAndroid Studioを2.2.3にアップデートしました。今私のアプリケーションはapp:compilieDebugJavaWithJavacエラーを出しています。 は、ここで私が見つけた唯一の違いは、私は、デフォルトのJDKを使用していた古いバージョンであるスクリーンショット 私のJDKの場所 です。そして今、recommndedを使用しています。このコンパイラエラーを解決する方法。 私は、クリーンアップと他のものを試しました。使用しません。 全体のログ コンパイルに失敗しましたapp: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