2016-05-05 5 views
2
Error:(25, 31) error: package android.support.v4.util does not exist 
Error:(26, 31) error: package android.support.v4.view does not exist 
Error:(27, 31) error: package android.support.v4.view does not exist 
Error:(2189, 17) error: cannot find symbol class SparseArrayCompat 
Error:(692, 48) error: cannot find symbol variable MotionEventCompat 
Error:(821, 28) error: cannot find symbol variable MotionEventCompat 
Error:(858, 27) error: cannot find symbol variable MotionEventCompat 
Error:(865, 29) error: cannot find symbol variable MotionEventCompat 
Error:(976, 17) error: cannot find symbol variable MotionEventCompat 
Error:(977, 17) error: cannot find symbol variable MotionEventCompat 
Error:(1976, 9) error: cannot find symbol variable ViewCompat 
Error:(2361, 52) error: cannot find symbol variable ViewCompat 
Error:(2371, 52) error: cannot find symbol class SparseArrayCompat 
Error:(2415, 60) error: cannot find symbol variable ViewCompat 
Error:(2425, 60) error: cannot find symbol class SparseArrayCompat 
Error:(2464, 26) error: cannot find symbol variable ViewCompat 
    Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
:main:compileReleaseJavaWithJavac FAILED 
Error:Execution failed for task ':main:compileReleaseJavaWithJavac'. 
> Compilation failed; see the compiler error output for details. 

Beim Import des Projekts Android Studio, es zeigt den Fehler finden, dass es nicht einige Elemente aus der Bibliothek gefunden haben, was das Problem sein könnte?Karte Slide-Bibliothek kann nicht Symbolvariable/Klasse android Studio

ich für die Antwort warte, lass es mich wissen, wenn Sie eine mögliche Lösung für dieses Problem finden, würde ich

**This my build.gradle code** 


apply plugin: 'com.android.application' 
android { 
    //compileSdkVersion 'Google Inc.:Google APIs:23' 
    compileSdkVersion 23 
    buildToolsVersion "23.0.2" 

    defaultConfig { 
     applicationId "" 
     minSdkVersion 16 
     targetSdkVersion 23 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 
     } 
    } 
} 
dependencies { 
    compile project(':main') 
    compile project(':circularImageView') 
    compile project(':com_facebook_android') 
    compile project(':main') 
    compile 'com.android.support:support-v4:23.3.0' 
    compile 'com.google.android.gms:play-services:+' 
    compile files('libs/commons-codec-1.9.jar') 
    compile files('libs/picasso-2.5.2.jar') 
    compile files('libs/signpost-commonshttp4-1.2.1.1.jar') 
    compile files('libs/signpost-core-1.2.1.1.jar') 
    compile files('libs/signpost-jetty6-1.2.1.1.jar') 
    compile files('libs/simple-side-drawer2.jar') 
    compile files('libs/twitter4j-core-2.2.5.jar') 
} 
+0

zeigen Sie Ihr 'build.gradle' –

+0

http://stackoverflow.com/questions/24545576/package-android-support-v4 -app-does-nicht-existiert-in-android-studio-0-8 –

+0

können Sie überprüfen, meine buld.gradle –

Antwort

0

Ihnen sehr dankbar sein, da Sie Android Studio verwenden, I‘ Ich nehme an, du benutzt Gradle. Stellen Sie sicher, dass in Ihrem Skript zum Erstellen von Großbuchstaben (build.gradle) die entsprechenden Abhängigkeiten vorhanden sind. Wenn zum Beispiel "error: package android.support.v4.util nicht vorhanden" angezeigt wird, fehlt Ihnen wahrscheinlich die Support-Bibliothek v4. Sie müssen so etwas wie:

dependencies { 
    compile 'com.android.support:support-v4:23.3.0' 
} 

und so weiter ...

+0

Es ist bereits fertig, das Problem ist die Bibliothek für die Karte Folie ist nicht richtig integriert, ich habe nur das Projektformular importiert Sonnenfinsternis auf Android-Studio –

Verwandte Themen