2016-12-07 1 views
1

나는 안드로이드 스튜디오 2.1.3으로 하나의 안드로이드 응용 프로그램을 개발해 왔습니다. 최근 Android Studio를 2.2.3으로 업데이트했습니다. 이제 내 응용 프로그램에 app : compilieDebugJavaWithJavac 오류가 발생했습니다. 여기 내가 찾은 유일한 차이점은 내가 기본 JDK를 사용했던 이전 버전에 스크린 샷 enter image description here 내 JDK 위치 enter image description here 입니다. 그리고 이제는 recommnded를 사용합니다. 이 컴파일러 오류를 해결하는 방법. 정리해보고, 다른 것들. 그러나 아무 사용. 전체 로그 enter image description here컴파일 실패 응용 프로그램 : 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' 
    } 
관련 문제