2016-04-19 14 views
0

私は最近Android Studioと関連するサポートライブラリを更新しました。私のアプリケーションは最初の画面に進みません。Android 6.0アプリケーションが読み込まれていませんアクティビティ

最初の画面は、ユーザーの認証状態をチェックする基本的なLoadingActivityです。ユーザーが認証されると、アプリケーションに進みます。それ以外の場合は、サインアップを促すアクティビティーに進みます。

ここ

は私のプロジェクトのスタックトレースです:

04-19 12:29:41.707 16877-16877/com.sourcey.materialloginexample I/art: Late-enabling -Xcheck:jni 
04-19 12:29:41.752 16877-16877/com.sourcey.materialloginexample I/HyLog: I : openReadStream, /data/font/config/sfconfig.dat, case (2) 
04-19 12:29:41.752 16877-16877/com.sourcey.materialloginexample D/HyLog: D: Wrong tag (927 : loadPreData() : frameworks/base/core/jni/android/graphics/TypefaceHyFontManager.cpp) 
04-19 12:29:41.752 16877-16877/com.sourcey.materialloginexample I/HyLog: I : openReadStream, /data/font/config/sfconfig.dat, case (2) 
04-19 12:29:41.754 16877-16887/com.sourcey.materialloginexample I/art: Debugger is no longer active 
04-19 12:29:41.777 16877-16877/com.sourcey.materialloginexample W/System: ClassLoader referenced unknown path: /data/app/com.sourcey.materialloginexample-1/lib/arm 
04-19 12:29:41.949 16877-16877/com.sourcey.materialloginexample D/PhoneWindowEx: [PWEx][generateLayout] setLGNavigationBarColor : colors=0xff000000 
04-19 12:29:41.949 16877-16877/com.sourcey.materialloginexample I/PhoneWindow: [setLGNavigationBarColor] color=0x ff000000 
04-19 12:29:42.104 16877-16877/com.sourcey.materialloginexample I/Timeline: Timeline: Activity_launch_request id:com.sourcey.materialloginexample time:167295 
04-19 12:29:42.144 16877-16939/com.sourcey.materialloginexample D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true 
04-19 12:29:42.171 16877-16877/com.sourcey.materialloginexample D/PhoneWindow: notifyNavigationBarColor, color=0x: ff000000, token: [email protected] 
04-19 12:29:42.225 16877-16877/com.sourcey.materialloginexample D/PhoneWindowEx: [PWEx][generateLayout] setLGNavigationBarColor : colors=0xff000000 
04-19 12:29:42.225 16877-16877/com.sourcey.materialloginexample I/PhoneWindow: [setLGNavigationBarColor] color=0x ff000000 
04-19 12:29:42.231 16877-16877/com.sourcey.materialloginexample I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead. 
04-19 12:29:42.411 16877-16877/com.sourcey.materialloginexample I/Timeline: Timeline: Activity_launch_request id:com.sourcey.materialloginexample time:167603 
04-19 12:29:42.476 16877-16939/com.sourcey.materialloginexample I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8916_32_LA.BR.1.2.6_RB1__release_AU (I3193f6e94a) 
                       OpenGL ES Shader Compiler Version: XE031.06.00.00 
                       Build Date: 10/07/15 Wed 
                       Local Branch: 
                       Remote Branch: quic/LA.BR.1.2.6_rb1.1 
                       Local Patches: NONE 
                       Reconstruct Branch: NOTHING 
04-19 12:29:42.480 16877-16939/com.sourcey.materialloginexample I/OpenGLRenderer: Initialized EGL, version 1.4 
04-19 12:29:42.573 16877-16877/com.sourcey.materialloginexample I/Timeline: Timeline: Activity_idle id: [email protected] time:167764 
04-19 12:29:42.573 16877-16877/com.sourcey.materialloginexample I/Timeline: Timeline: Activity_idle id: [email protected] time:167765 
04-19 12:30:07.510 16877-16877/com.sourcey.materialloginexample I/ViewRootImpl: ViewRoot's Touch Event : ACTION_DOWN 
04-19 12:30:07.611 16877-16877/com.sourcey.materialloginexample I/ViewRootImpl: ViewRoot's Touch Event : ACTION_UP 

ロードアクティビティ:

public class LoadingActivity extends AppCompatActivity { 
@Override 
public void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.activity_loading); 
    Firebase.setAndroidContext(this); 

    final Firebase userRef = FirebaseUtil.FIREBASE.child("Users"); 
    final AuthData authData = userRef.getAuth(); 

    if (authData != null) { 
     startActivity(new Intent(LoadingActivity.this, MainActivity.class)); 
    } else { 
     startActivity(new Intent(LoadingActivity.this, SignupActivity.class)); 
     finish(); 
    } 
    } 
} 

Build.Gradle:

apply plugin: 'com.android.application' 

    android { 
    compileSdkVersion 23 
    buildToolsVersion '23.0.3' 


    defaultConfig { 
     applicationId "com.sourcey.materialloginexample" 
     minSdkVersion 16 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 

    packagingOptions { 
     exclude 'META-INF/LICENSE' 
     exclude 'META-INF/LICENSE-FIREBASE.txt' 
     exclude 'META-INF/NOTICE' 
    } 
} 
repositories { 
    maven { url "https://jitpack.io" } 
} 


dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile('com.mikepenz:materialdrawer:[email protected]') { 
     transitive = true 
    } 

    compile 'com.github.clans:fab:1.6.2' 
    compile 'de.hdodenhof:circleimageview:2.0.0' 
    compile 'com.android.support:appcompat-v7:23.3.0' 
    compile 'com.android.support:design:23.3.0' 
    compile 'com.jakewharton:butterknife:7.0.1' 
    compile 'com.firebase:firebase-client-android:2.5.0' 
    compile 'com.facebook.android:facebook-android-sdk:4.6.0' 
    compile 'com.google.android.gms:play-services-auth:8.4.0' 
    compile 'org.twitter4j:twitter4j-core:4.0.2' 
    compile 'com.firebaseui:firebase-ui:0.3.0' 
    compile 'com.android.support:support-v4:23.3.0' 
    compile 'com.squareup.picasso:picasso:2.5.2' 
    compile 'com.squareup.okhttp3:okhttp:3.1.2' 
    compile 'com.github.PhilJay:MPAndroidChart:v2.2.2' 
    } 

マニフェスト:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.troychuinard.fanpolls"> 

    <uses-permission android:name="android.permission.INTERNET" /> 

    <application 
     android:name=".FanPollsApplication" 
     android:allowBackup="true" 
     android:icon="@drawable/fan_polls_logo" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme"> 
     <activity 
      android:name=".SignupActivity" 
      android:screenOrientation="portrait" 
      android:theme="@style/AppTheme.Dark" 
      android:windowSoftInputMode="stateHidden|adjustResize" /> 
     <activity 
      android:name="com.facebook.FacebookActivity" 
      android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" 
      android:label="@string/app_name" 
      android:theme="@android:style/Theme.Translucent.NoTitleBar" /> 

     <meta-data 
      android:name="com.facebook.sdk.ApplicationId" 
      android:value="@string/facebook_app_id" /> 
     <meta-data 
      android:name="com.firebase.ui.GoogleClientId" 
      android:value="@string/google_client_id" /> 

     <activity android:name="com.firebase.ui.auth.twitter.TwitterPromptActivity" /> 

     <meta-data 
      android:name="com.firebase.ui.TwitterKey" 
      android:value="@string/twitter_app_key" /> 
     <meta-data 
      android:name="com.firebase.ui.TwitterSecret" 
      android:value="@string/twitter_app_secret" /> 

     <activity 
      android:name=".MainActivity" 
      android:label="@string/title_activity_poll" 
      android:launchMode="singleTask" 
      android:screenOrientation="portrait" 
      android:theme="@style/AppTheme.NoActionBar" /> 
     <activity 
      android:name=".LoadingActivity" 
      android:label="@string/app_name" 
      android:theme="@style/AppTheme.NoActionBar"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name=".Discussion_Activity" 
      android:label="@string/title_activity_discussion_" 
      android:screenOrientation="portrait" 
      android:theme="@style/AppTheme.NoActionBar" /> 
     <activity 
      android:name=".PreviousActivity" 
      android:label="@string/title_activity_previous" 
      android:theme="@style/AppTheme.NoActionBar"> 
     </activity> 
     </application> 

    </manifest> 

enter image description here

+0

LoadingActivityのifとelseブロックの両方にlogステートメントを追加し、それらは印刷されています。 –

+0

TypefaceHyFontManagerクラスがSDKにありません... –

+0

なぜそれが起こりますか、それが唯一の問題ですか? – tccpg288

答えて

1

Androidマニフェストのコピーを投稿してください。

「アプリ:テーマが廃止されます。アンドロイドを使用して移動してください:テーマの代わりに「

をあなたのアプリケーションタグは、Androidマニフェストにする必要があります:。

<application 
    android:theme="Theme.AppCompat.Light.NoActionBar" 
    tools:replace="label"> 

および/またはアクティビティタグのAndroidマニフェストにする必要があります:

<activity 
     android:name=".Name" 
     android:launchMode="singleTop" 
     android:theme="Theme.AppCompat.Light.NoActionBar"> 

重要AppCompatActivityを使用する場合、Theme.AppCompat。*のバリアントを使用してすべてのアクティビティにテーマが必要です。

+0

マニフェストファイルを含めるように更新しました – tccpg288

+0

マニフェストが既にそれらの変更を考慮しているため、これは機能していないようです... – tccpg288

+0

buildToolsVersion 23.0.2に変更し、キャッシュ/再起動を無効にしてください。これがツール/スタジオのアップデート後に起き始めると、これはチェックする2つの他のものになります。 – DoctorD

関連する問題