2016-08-17 17 views
2

私のモバイルをUSB経由で接続して、モバイルでアプリを実行しました。実行中にAndroid Monitorにエラーが表示される本番デバイスでは実行できません! USB接続デバイスでアプリを実行しているときにエラーが発生しました

実稼働デバイスでは実行できません!

マニフェストファイル:

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

    <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" 
      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> 
    </application> 
</manifest> 

のGradleをビルドします。

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion "24.0.1" 

    defaultConfig { 
     applicationId "com.example.roam12.demo" 
     minSdkVersion 15 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 
+0

android:launchMode = "standard" – YUVRAJ

+0

デバイスをルートする必要があるものは何も追加しましたか?また、あなたの 'build.gradle'を共有してください – Shaishav

+0

私はこの文をAndroid Manifestに入れて、"標準を解決できません "というエラーを出します: –

答えて

0

あなたは、おそらく実際に署名ウィザードでAPKのリリースビルドに署名していません。あなたは、どちらかの可能なコマンドを使用して、コマンドラインからリリースAPK構築:

./gradlew assembleRelease 

か、ビルドバリアントビューから解放バリアントを選択し、GUIからそれを構築することができます。

また、Build Gradleファイルにdebug buildtypeを定義してください。

関連する問題