2016-12-07 11 views
1

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

全体のエラーログを投稿することはできますか? – Raghavendra

+0

あなたは 'コンパイルエラーの出力を参照してください'? –

+0

スクリーンショットのみを投稿するのはなぜですか?完全なエラーをコピー&ペーストできますか? – Raghavendra

答えて

1

私は意味、あなたは

アンドロイド下build.gradleに次のコードを入れてみてください{

compileSdkVersion 24 
    buildToolsVersion "23.0.3" 

だから、次のようになります。

android { 
    compileSdkVersion 24 
    buildToolsVersion "23.0.3" 

私のために動作する少なくとも、それはあなたを助けると確信していない場合。私自身はこれで出発点です。

0

私はbuild.gradleファイルのすべてをこのような最新のビルドツールに変更しました。それは私のために働いた

apply plugin: 'com.android.application' 

    android { 

     compileSdkVersion 25 
     buildToolsVersion "25.0.1" 
     useLibrary 'org.apache.http.legacy' 
     defaultConfig { 
      minSdkVersion 14 
      targetSdkVersion 25 
      versionCode 17 
      versionName "2.0.5" 
      signingConfig signingConfigs.config 

      ndk { 
       moduleName = "moduleName" 
      } 
     } 
     buildTypes { 

     } 
     sourceSets { 
      main { 
       jniLibs.srcDir 'jniLibs' 
      } 
     } 
     productFlavors { 
     } 

    } 

    dependencies { 
     compile fileTree(include: ['*.jar'], dir: 'libs') 
     //pallette 
     compile 'com.android.support:palette-v7:25.0.1' 
     //parse 
     compile 'com.parse.bolts:bolts-android:1.+' 
     compile 'com.parse:parse-android:1.+' 
     //appcompat 
     compile 'com.android.support:appcompat-v7:25.0.1' 
     //design 
     compile 'com.android.support:design:25.0.1' 
     //volley 
     compile 'com.mcxiaoke.volley:library-aar:1.0.0' 
     //paypal 
     compile 'com.paypal.sdk:paypal-android-sdk:2.13.1' 
     // CardView 
     compile 'com.android.support:cardview-v7:25.0.1' 
     // RecyclerView 
     compile 'com.android.support:recyclerview-v7:25.0.1' 
    } 
関連する問題