마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

마켓등록시 지원되는 Android 기기 0개 로 나옵니다.

0 추천

apk 빌드해서 마켓에 올리는데 지원되는 기기 목록이 0으로 나옵니다.

보안상 덱스가드를 사용중인데 덱스가드를 적용하면 0으로 나오고 

프로가드로 바꾸면 7000개정도 나옵니다.

어떤게 문제일까요? ㅠㅠ

AndroidManifest 랑 build.gradle 패키지명만 바꿔서 올려봅니다...

고수님들 도와주세요~

 

 

AndroidManifest.xml

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

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.DIAL_PHONE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

    <application
        android:name="net.test.myapp.config.App"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme"
        tools:replace="android:icon">
        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version"/>

        <activity android:name="net.test.myapp.ui.main.LauncherActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

</manifest>

 

build.gradle (module)

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots/"
        }
        maven {
            url "https://jitpack.io"
        }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'dexguard'
apply plugin: 'io.fabric'

repositories {
    maven { url 'https://maven.fabric.io/public' }
}


android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"
    /*
    * Test
    * versionCode - 2
    * versionName - 0.1.1
    *
    * Release
    * versionCode - 7
    * versionName - 1.0.0
    * */
    defaultConfig {
        applicationId "net.test.myapp"
        multiDexEnabled true
        minSdkVersion 18
        targetSdkVersion 23
        versionCode 7
        versionName "1.0.0"
    }
    buildTypes {
        debug {
            minifyEnabled false
            proguardFiles getDefaultDexGuardFile('dexguard-debug.pro')
            proguardFiles 'proguard-project.txt'
        }
        release {
            minifyEnabled true
            proguardFiles getDefaultDexGuardFile('dexguard-release.pro')
            proguardFiles 'proguard-project.txt'
        }
    }
    productFlavors {
        mock {
            applicationIdSuffix = ".mock"
        }
        prod {
            applicationId 'net.test.myapp'
            multiDexEnabled true
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
}

dependencies {
    compile fileTree(include: '*.jar', dir: './libs')
    compile fileTree(include: '*.jar', dir: './libs/dexguard')
    compile project(':imagechooser')
    compile project(':photoView')
    compile project(':easyAndroidAnimationsLibrary')
    compile 'com.squareup.retrofit2:retrofit:2.0.2'
    compile 'com.android.support:appcompat-v7:23.3.0'
    compile 'com.android.support:design:23.3.0'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.github.rampo.updatechecker:library:2.1.8'
    compile 'com.google.android.gms:play-services:9.0.0'
    compile 'com.android.support:cardview-v7:23.4.0'
    compile 'com.github.PhilJay:MPAndroidChart:v2.2.5'
    compile 'com.squareup.okhttp3:okhttp:3.3.1'
    compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'
    compile 'com.squareup.okhttp3:okhttp-urlconnection:3.3.1'
    compile 'com.squareup.okhttp3:okhttp-android-support:3.3.1'
    compile 'com.squareup.retrofit2:converter-gson:2.0.2'
    compile 'com.android.support:palette-v7:23.0.0'
    compile 'com.google.firebase:firebase-core:9.0.0'
    compile 'com.scottyab:secure-preferences-lib:0.1.4'
    compile('com.crashlytics.sdk.android:crashlytics:2.6.2@aar') {
        transitive = true;
    }
}

 

 

build.gradle (project)

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        mavenCentral()
        flatDir { dirs 'app/libs/dexguard/' }
        maven { url 'https://maven.fabric.io/public' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.2'
        classpath 'com.google.gms:google-services:3.0.0'
        classpath ':dexguard:'
        classpath 'io.fabric.tools:gradle:1.+'

    }

}

allprojects {
    repositories {
        jcenter()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
}

 

PuHit (270 포인트) 님이 2016년 8월 29일 질문

1개의 답변

0 추천
해결하셨나요??ㅠㅠㅠㅠㅠㅠㅠㅠ
vc 님이 2017년 1월 26일 답변
네 덱스가드 적용문제인데,
프로젝트랑 모듈에 동시에 덱스가드를 적용하지 않고,
프로젝트에만 덱스가드를 적용하면 문제 해결됩니다.
답변 감사드립니다. 제 상황은 조금 다른 문제였는데 다행히 다른 방법으로 해결했습니다..
...