2017-10-05 4 views
-1

スタジオで簡単なアンドロイドプロジェクトを作成しました。しかし、それはkitkatとそれ以下のバージョンでは動作しません。しかし、ロリポップ+バージョンでうまく動作します。私が作成する各プロジェクトはkitkatで動作しません。私の活動を開くと、実際のデバイスで停止しただけで、エミュレータで正常に動作します。私は電話をPCに接続することはできません。だから私はlogcatのエラーを表示することができません。私はたくさんのことを試みました。アプリがkitkatで停止し続ける

のGradleファイル:

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 25 
buildToolsVersion "25.0.3" 
defaultConfig { 
    applicationId "com.example.demotoruninpos" 
    minSdkVersion 16 
    targetSdkVersion 25 
    versionCode 1 
    versionName "1.0" 

    testInstrumentationRunner 
"android.support.test.runner.AndroidJUnitRunner" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 
'proguard-rules.pro' 
    } 
} 
} 

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', 
{ 
    exclude group: 'com.android.support', module: 'support-annotations' 
}) 
compile 'com.android.support:appcompat-v7:25.3.1' 
compile 'com.android.support:support-v4:25.3.1' 
testCompile 'junit:junit:4.12' 
} 

マニフェストファイル:

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


<application 
    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme"> 

    <activity android:name=".MainActivity" 
     android:label="@string/app_name" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

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

</manifest> 
+0

に優れている、私たちができることは何もありません。あなたのコードはこの面でうまく見えます。 –

+0

ここにエラーログを投稿@ Shuchi – UltimateDevil

+0

@Anonymousあなたが言及したこのリンク。その全く異なるケース。マルチディックス問題。この質問とは何の関係もありません。 –

答えて

2

あなたが原因インスタント実行の問題を抱えているが、あなたのAndroidのスタジオで有効です。何を

File > Setting > Build,Execution,Dev > Instant run > Turn it OFF. 

に行く....

をしなければならないことは、今あなたがエラー・ログなしgo..Happy Codding

+0

thankuをロリポップそんなに...それが働い使用します。 –

関連する問題