2017-01-05 4 views
3

간단한 앱 (Hello world)을 테스트했습니다. 내 롤리팝 장치에서 작동하지만이 응용 프로그램을 제 젤리 장치와 공유 할 때 응용 프로그램이 응답하지 않습니다.애플 리케이션이 젤리에서 지원되지 않습니다

의 minSdkVersion = 11 targetSdkVersion을 = 25

젤리 빈 버전 4.1.2 SDK (16)

이 사람이 어떻게 문제를 해결하는 방법을 말해 줄래?

미리 감사드립니다. 여기

는 내 코드 상세 ...

build.gradle

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.0" 
    defaultConfig { 
     applicationId "com.example.user.sdktext1" 
     minSdkVersion 11 
     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' 
    }) 
    testCompile 'junit:junit:4.12' 
}  

MainActivity.java

package com.example.user.sdktext1; 

import android.app.Activity; 
import android.os.Bundle; 

public class MainActivity extends Activity { 

    @Override 
    protected void onCreate(Bundle savedInstanceState) { 
     super.onCreate(savedInstanceState); 
     setContentView(R.layout.activity_main); 
    } 
} 

activity_main.xml

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:id="@+id/activity_main" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:paddingBottom="@dimen/activity_vertical_margin" 
    android:paddingLeft="@dimen/activity_horizontal_margin" 
    android:paddingRight="@dimen/activity_horizontal_margin" 
    android:paddingTop="@dimen/activity_vertical_margin" 
    tools:context="com.example.user.sdktext1.MainActivity"> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="Hello World!" /> 
</RelativeLayout> 

의 AndroidManifest.xml이에 대한 매니페스트 android:supportsRtl="true"에 당신은 당신이 최소 API 레벨 17 저놈이 왜 필요 사실 수 있도록이 사용했기 때문에 코드가 작동하지

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

    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme"> 
     <activity android:name=".MainActivity"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

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

</manifest> 
+0

로그를 공유 할 수 있습니까? – petrumo

+0

사실, 내 Lollipop 모바일에서 테스트하고 있습니다.하지만 친구의 모바일 (Jelly Bean)과 공유 할 때 작동하지 않습니다. –

답변

4

그것은 작동하게 될 false로 값을 변경하는 충돌을 얻고 있습니다.