2016-04-16 4 views
0

Ich arbeite an einer Android App und es begann zu öffnen spät.Mehrere Bibliotheken Founded Alert und High Cache

04-16 18:07:09.834 2683-2683/pp.com.dersProgramim W/ResourceType: Found multiple library tables, ignoring... 
04-16 18:07:23.159 2683-2683/pp.com.dersProgramim D/NotificationMan...: Step 1 

Hier ist der Logcat im ersten Lauf. Es wird so lange gewartet, bis es im Abschnitt "Mehrere Tabellen finden, Ignorieren" geöffnet wird. Es ist wie 12 Sekunden.

Nach dem ersten Lauf, macht app große Größe Cache und Daten, wie 30 MB. App Info

Es ist so groß, denke ich.

Und der zweite Lauf zum Beispiel app öffnet spät wieder in „Mehrere Bibliothek Tabellen, ignoriert ...“ -Teil, wartet sie auch, aber nicht als erster Lauf ist es 15 ms. Hier

ist die build.gradle Datei

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion '23.0.2' 

    defaultConfig { 
     applicationId "pp.com.dersProgramim" 
     minSdkVersion 14 
     targetSdkVersion 23 
     versionCode 10 
     versionName "2.0.1" 
     multiDexEnabled true 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

repositories { 
    maven { url "https://jitpack.io" } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:23.1.0' 

    compile 'com.android.support:design:23.1.0' 
    compile 'com.android.support:cardview-v7:23.1.0' 

    compile project(':BetterPickers') 
    compile project(':MaterialDesign') 
    compile project(':UpdateChecker') 

    compile 'com.google.android.gms:play-services:6.+' 

    compile 'com.balysv.materialmenu:material-menu-toolbar:1.5.1' 

    compile 'de.cketti.library.changelog:ckchangelog:1.2.2' 

    compile('com.afollestad.material-dialogs:core:[email protected]') { 
     transitive = true 
    } 

    compile 'com.koushikdutta.ion:ion:2.+' 

    compile 'com.prolificinteractive:material-calendarview:1.1.0' 

} 

manifest.xml Datei

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="pp.com.dersProgramim"> 

    <uses-permission android:name="android.permission.WAKE_LOCK"/> 
    <uses-permission android:name="android.permission.INTERNET"/> 
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> 
    <uses-permission android:name="android.permission.VIBRATE"/> 
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> 

    <application android:allowBackup="true" android:label="@string/app_name" 
     android:name=".MySchoolSchedule" 
     android:icon="@mipmap/ic_launcher" android:supportsRtl="true" 
     android:theme="@style/DersProgramimTheme"> 

     <meta-data android:name="com.google.android.gms.version" 
      android:value="@integer/google_play_services_version"/> 
     <activity 
      android:name=".MainActivity" 
      android:label="@string/app_name" 
      android:exported="true" 
      android:theme="@style/DersProgramimTheme" 
      android:configChanges="orientation|screenSize|touchscreen" 
      android:windowSoftInputMode="stateUnchanged|stateHidden|adjustPan" > 

      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 

     <activity android:name=".SetSchuleTimeConfigurationActivity" 
      android:label="@string/app_name" 
      android:theme="@style/DersProgramimTheme" 
      android:configChanges="orientation|screenSize|touchscreen" 
      android:windowSoftInputMode="stateUnchanged|stateHidden|adjustPan"/> 

     <activity android:name="com.google.android.gms.ads.AdActivity" 
      android:theme="@android:style/Theme.Translucent" 
      android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/> 

     <receiver android:name=".StartReceiver"> 
      <intent-filter> 
       <action android:name="android.intent.action.BOOT_COMPLETED" /> 
      </intent-filter> 
     </receiver> 

     <service android:name=".NotificationService" /> 
    </application> 

</manifest> 

Und andere Moduls build.gradle Dateien

buildscript { 
    repositories { 
     mavenCentral() 
     maven { url "https://jitpack.io" } 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.1.0-beta1' 
    } 
} 
repositories { 
    mavenCentral() 
    maven { url "https://jitpack.io" } 
} 
apply plugin: 'android-library' 

android { 
    compileSdkVersion 23 
    buildToolsVersion '23.0.2' 

    defaultConfig { 
     minSdkVersion 10 
     targetSdkVersion 23 
     versionName "1" 
     versionCode 1 
    } 
    buildTypes { 
     release { 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile 'com.android.support:support-v4:23.0.1' 

    compile('com.afollestad.material-dialogs:core:[email protected]') { 
     transitive = true 
    } 
} 

Und andere

android { 
    compileSdkVersion 23 
    buildToolsVersion '23.0.2' 

    defaultConfig { 
     minSdkVersion 11 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
     multiDexEnabled true 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile 'com.android.support:support-v4:23.+' 
    compile 'com.nineoldandroids:library:2.4.0' 
    compile fileTree(dir: 'libs', include: '*.jar') 
} 

Und dies ist der letzte

apply plugin: 'com.android.library' 

android { 
    compileSdkVersion 23 
    buildToolsVersion '23.0.2' 

    defaultConfig { 
     minSdkVersion 11 
     targetSdkVersion 23 
     versionCode 10 
     versionName "1.5.5" 
     multiDexEnabled true 
    } 

    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 

    sourceSets { 
     main { 
      assets { 
       srcDir 'assets' 
      } 
     } 
    } 

    lintOptions { 
     abortOnError false 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile 'com.android.support:support-v4:23.0.1' 
    compile 'org.jraf:android-switch-backport:[email protected]' 
    compile 'com.nineoldandroids:library:2.4.0' 
} 

Vielen Dank für Ihre Hilfe Jungs.

Antwort

0

ja, ich habe dieses Problem zu

Aber das Problem gelöst, wenn ich eine freigegebene apk bauen. Vielleicht können Sie versuchen, eine freigegebene apk zu bauen. Ich denke, es könnte ein Problem in der Debug-Apk sein.

+0

Danke. Es hat funktioniert und noch eine Sache, Ich habe "Instant Run" in Android Studio 2.1 geschlossen und jetzt funktioniert es perfekt. Vielen Dank. – oznakn

Verwandte Themen