Programación y Desarrollo para Android Subforo exclusivo para temas de programación de software para PDAs y desarrollo de aplicaciones, interfaces, etc bajo Android

Respuesta
 
Herramientas
  #1  
Viejo 29/06/16, 17:31:07
Array

[xs_avatar]
LEAJIM_454 LEAJIM_454 no está en línea
Miembro del foro
 
Fecha de registro: nov 2012
Mensajes: 215
Modelo de smartphone: Galaxy Ace
Tu operador: Otra
Problema al compilar apk firmada

Hola, tengo un problema, la aplicacion que estoy desarrollando la retome para desarrollarla ahora con Android Studio, en eclipse me firmaba de forma correcta y me generaba el apk pero ahora en Android Studio no me deja me sale este error en la gradle console
[PHP]> java.io.IOException: proguard.ParseException: Unknown option '' in line 1 of file 'C:\Android Projects\Aprende\app\proguard-rules.pro'[/PHP]

Mi archivo build.gradle es este:
[PHP]
apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion '24'
compileOptions.encoding = 'ISO-8859-1'

lintOptions {
disable "ResourceType"
}

// jackOptions {
// enabled true
// }

defaultConfig {
applicationId "com.JimSoft.Edu.LearnWithEnuma"
minSdkVersion 14
targetSdkVersion 24
defaultConfig {
// Enabling multidex support.
multiDexEnabled true
}
}

// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }


buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}




dependencies {
compile files('libs/android-support-v7-palette.jar')

compile 'com.android.support:multidex:1.0.0'

compile 'com.android.support:appcompat-v7:24.0.0-alpha2'
compile 'com.android.support:support-v4:24.0.0-alpha2'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.github.japgolly.android:svg-android:2.0.6'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.google.android.gms:play-services-auth:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
} [/PHP] agradeceria cualquier ayuda.
Responder Con Cita


  #2  
Viejo 29/06/16, 18:17:30
Array

[xs_avatar]
mocelet mocelet no está en línea
Desarrollador
 
Fecha de registro: may 2011
Localización: Madrid
Mensajes: 2,203
Tu operador: -

Por lo visto son las marcas BOM (Byte Order Mark) que especifican al principio del fichero el tipo de formato de UTF-8.

Hay que quitarlas para que proguard lo lea bien. El cómo depende de qué sistema operativo o herramientas tengas, busca por google cómo eliminar el BOM de un fichero de texto.

P.D: Con Notepad++ se puede, abres el fichero y le cambias la codificación a UTF-8 sin BOM.
__________________
El mejor Cuatro en Raya de Android (Hilo en HTCMania, Play Store) ¡Un millón de descargas!

Última edición por mocelet Día 29/06/16 a las 18:19:43.
Responder Con Cita
Gracias de parte de:
  #3  
Viejo 30/06/16, 01:19:52
Array

[xs_avatar]
LEAJIM_454 LEAJIM_454 no está en línea
Miembro del foro
 
Fecha de registro: nov 2012
Mensajes: 215
Modelo de smartphone: Galaxy Ace
Tu operador: Otra
 Cita: Originalmente Escrito por mocelet Ver Mensaje
Por lo visto son las marcas BOM (Byte Order Mark) que especifican al principio del fichero el tipo de formato de UTF-8. Hay que quitarlas para que proguard lo lea bien. El cómo depende de qué sistema operativo o herramientas tengas, busca por google cómo eliminar el BOM de un fichero de texto. P.D: Con Notepad++ se puede, abres el fichero y le cambias la codificación a UTF-8 sin BOM.
Gracias mocelet definitivamente se ha eliminado ese mensaje de error pero aun no me deja compilar y no tengo la menor idea del por que, esto me sale en messages gradle build:
[PHP]Information:Gradle tasks [:app:assembleRelease]
:app:preBuild UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:app:checkReleaseManifest
:app:preDebugBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawabl e2400Alpha2Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72400Alpha2 Library UP-TO-DATE
:app:prepareComAndroidSupportMediarouterV72300Libr ary UP-TO-DATE
:app:prepareComAndroidSupportMultidex101Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42400Alpha2Li brary UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable 2400Alpha2Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServices840Libr ary UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAds840L ibrary UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAnalyti cs840Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppinde xing840Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppinvi te840Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppstat e840Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAuth840 Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBase840 Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBasemen t840Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesCast840 Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesDrive84 0Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesFitness 840Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesGames84 0Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesGcm840L ibrary UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesIdentit y840Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesLocatio n840Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesMaps840 Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesMeasure ment840Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesNearby8 40Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesPanoram a840Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesPlus840 Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesSafetyn et840Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesVision8 40Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesWallet8 40Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesWearabl e840Library UP-TO-DATE
:app:prepareReleaseDependencies
:app:compileReleaseAidl UP-TO-DATE
:app:compileReleaseRenderscript UP-TO-DATE
:app:generateReleaseBuildConfig UP-TO-DATE
:app:mergeReleaseShaders UP-TO-DATE
:app:compileReleaseShaders UP-TO-DATE
:app:generateReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets UP-TO-DATE
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:app:mergeReleaseResources UP-TO-DATE
:app:processReleaseManifest UP-TO-DATE
:app:processReleaseResources UP-TO-DATE
:app:generateReleaseSources UP-TO-DATE
:app:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:app:compileReleaseJavaWithJavac UP-TO-DATE
:app:compileReleaseNdk UP-TO-DATE
:app:compileReleaseSources UP-TO-DATE
:app:lintVitalRelease
:app:prePackageMarkerForRelease
:app:processReleaseJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:app:transformClassesAndResourcesWithProguardForRe lease
ProGuard, version 5.2.1
Reading input...
Reading program jar [C:\Android Projects\Aprende\app\libs\android-support-v7-palette.jar] (filtered)
Reading program jar [C:\users\Mijael\.gradle\caches\modules-2\files-2.1\com.github.japgolly.android\svg-android\2.0.6\9b54af90b1718548570f6c6c44d8daad9e28 6dfd\svg-android-2.0.6.jar] (filtered)
Reading program jar [D:\Archivos de trabajo\Android\sdk\extras\android\m2repository\co m\android\support\support-annotations\24.0.0-alpha2\support-annotations-24.0.0-alpha2.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.android.support\multidex\1.0.1\jars\classe s.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-analytics\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-appindexing\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-appinvite\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-appstate\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-cast\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.android.support\mediarouter-v7\23.0.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.android.support\mediarouter-v7\23.0.0\jars\libs\internal_impl-23.0.0.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\24.0.0-alpha2\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.android.support\animated-vector-drawable\24.0.0-alpha2\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\24.0.0-alpha2\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-fitness\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-games\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-drive\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-location\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-nearby\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-panorama\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-plus\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-safetynet\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-vision\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-wallet\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-identity\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-maps\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-wearable\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-ads\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-auth\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-gcm\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-measurement\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-basement\8.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.android.support\support-v4\24.0.0-alpha2\jars\classes.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\exploded-aar\com.android.support\support-v4\24.0.0-alpha2\jars\libs\internal_impl-24.0.0-alpha2.jar] (filtered)
Reading program jar [C:\Android Projects\Aprende\app\build\intermediates\transform s\mergeJavaRes\release\jars\2\1f\main.jar] (filtered)
Reading program directory [C:\Android Projects\Aprende\app\build\intermediates\classes\r elease] (filtered)
Reading library jar [D:\Archivos de trabajo\Android\sdk\platforms\android-24\android.jar]
Reading library jar [D:\Archivos de trabajo\Android\sdk\platforms\android-24\optional\org.apache.http.legacy.jar]
Note: duplicate definition of library class [org.apache.http.conn.scheme.LayeredSocketFactory]
Note: duplicate definition of library class [org.apache.http.conn.scheme.SocketFactory]
Note: duplicate definition of library class [org.apache.http.conn.scheme.HostNameResolver]
Note: duplicate definition of library class [org.apache.http.conn.ConnectTimeoutException]
Note: duplicate definition of library class [org.apache.http.params.CoreConnectionPNames]
Note: duplicate definition of library class [org.apache.http.params.HttpParams]
Note: duplicate definition of library class [org.apache.http.params.HttpConnectionParams]
Note: duplicate definition of library class [android.net.http.SslError]
Note: duplicate definition of library class [android.net.http.HttpResponseCache]
Note: duplicate definition of library class [android.net.http.SslCertificate$DName]
Note: duplicate definition of library class [android.net.http.SslCertificate]
Note: there were 11 duplicate class definitions.
(http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
Initializing...
Note: the configuration refers to the unknown class 'com.google.vending.licensing.ILicensingService'
Note: the configuration refers to the unknown class 'com.android.vending.licensing.ILicensingService'
Note: the configuration refers to the unknown class 'com.JimSoft.Edu.LearnWithEnuma.TestActivity'
Note: android.support.v4.app.NotificationCompatJellybean calls 'Field.getType'
Note: com.google.android.gms.internal.zzsv calls 'Field.getType'
Warning:com.larvalabs.svgandroid.SVGParser: can't find referenced method 'float sin(float)' in library class android.util.FloatMath
Warning:com.larvalabs.svgandroid.SVGParser: can't find referenced method 'float cos(float)' in library class android.util.FloatMath
Warning:com.larvalabs.svgandroid.SVGParser: can't find referenced method 'float sqrt(float)' in library class android.util.FloatMath
Warning:com.larvalabs.svgandroid.SVGParser$SVGHand ler: can't find referenced method 'float ceil(float)' in library class android.util.FloatMath
Note: android.support.v4.media.ParceledListSliceAdapterA pi21: can't find dynamically referenced class android.content.pm.ParceledListSlice
Note: android.support.v4.media.ServiceCallbacksAdapterAp i21: can't find dynamically referenced class android.service.media.IMediaBrowserServiceCallback s
Note: android.support.v4.media.ServiceCallbacksAdapterAp i21: can't find dynamically referenced class android.content.pm.ParceledListSlice
Note: android.support.v4.media.ServiceCallbacksAdapterAp i21$Stub: can't find dynamically referenced class android.service.media.IMediaBrowserServiceCallback s$Stub
Note: android.support.v4.media.ServiceCallbacksAdapterAp i24: can't find dynamically referenced class android.service.media.IMediaBrowserServiceCallback s
Note: android.support.v4.media.ServiceCallbacksAdapterAp i24: can't find dynamically referenced class android.content.pm.ParceledListSlice
Note: android.support.v4.text.ICUCompatApi23: can't find dynamically referenced class libcore.icu.ICU
Note: android.support.v4.text.ICUCompatIcs: can't find dynamically referenced class libcore.icu.ICU
Note: android.support.v7.widget.DrawableUtils: can't find dynamically referenced class android.graphics.Insets
Note: com.google.android.gms.internal.zzlh: can't find dynamically referenced class com.facebook.Session
Note: com.google.android.gms.internal.zzlh: can't find dynamically referenced class com.facebook.FacebookSdk
Note: com.google.android.gms.internal.zzlh: can't find dynamically referenced class com.facebook.login.LoginManager
Note: com.google.android.gms.internal.zzlh: can't find dynamically referenced class com.facebook.Session
Note: com.google.android.gms.internal.zzlh: can't find dynamically referenced class com.facebook.login.LoginManager
Note: com.google.android.gms.internal.zzlh: can't find dynamically referenced class com.facebook.Session$OpenRequest
Note: com.google.android.gms.internal.zzlh: can't find dynamically referenced class com.facebook.Session
Note: com.google.android.gms.internal.zzlh: can't find dynamically referenced class com.facebook.Session$StatusCallback
Note: com.google.android.gms.internal.zzlh: can't find dynamically referenced class com.facebook.Session
Note: com.google.android.gms.internal.zzlh: can't find dynamically referenced class com.facebook.Session$StatusCallback
Note: com.google.android.gms.internal.zzlh$1: can't find dynamically referenced class com.facebook.SessionState
Note: com.google.android.gms.maps.internal.zzad: can't find dynamically referenced class com.google.android.gms.maps.internal.CreatorImpl
Note: android.support.v4.app.NotificationCompatJellybean accesses a declared field 'icon' dynamically
Maybe this is program field 'android.support.v4.app.NotificationCompat$Action { int icon; }'
Maybe this is program field 'android.support.v7.appcompat.R$attr { int icon; }'
Maybe this is program field 'android.support.v7.appcompat.R$id { int icon; }'
Maybe this is program field 'android.support.v7.mediarouter.R$attr { int icon; }'
Maybe this is program field 'android.support.v7.mediarouter.R$id { int icon; }'
Maybe this is program field 'com.JimSoft.Edu.LearnWithEnuma.R$attr { int icon; }'
Maybe this is program field 'com.JimSoft.Edu.LearnWithEnuma.R$id { int icon; }'
Maybe this is library field 'android.R$attr { int icon; }'
Maybe this is library field 'android.R$id { int icon; }'
Maybe this is library field 'android.app.LauncherActivity$ListItem { android.graphics.drawable.Drawable icon; }'
Maybe this is library field 'android.app.Notification { int icon; }'
Maybe this is library field 'android.app.Notification$Action { int icon; }'
Maybe this is library field 'android.appwidget.AppWidgetProviderInfo { int icon; }'
Maybe this is library field 'android.content.pm.PackageItemInfo { int icon; }'
Maybe this is library field 'android.content.pm.ResolveInfo { int icon; }'
Maybe this is library field 'android.inputmethodservice.Keyboard$Key { android.graphics.drawable.Drawable icon; }'
Maybe this is library field 'android.service.notification.Condition { int icon; }'
Maybe this is library field 'android.speech.tts.TextToSpeech$EngineInfo { int icon; }'
Note: android.support.v4.app.NotificationCompatJellybean accesses a declared field 'title' dynamically
Maybe this is program field 'android.support.v4.app.NotificationCompat$Action { java.lang.CharSequence title; }'
Maybe this is program field 'android.support.v7.appcompat.R$attr { int title; }'
Maybe this is program field 'android.support.v7.appcompat.R$id { int title; }'
Maybe this is program field 'android.support.v7.mediarouter.R$attr { int title; }'
Maybe this is program field 'android.support.v7.mediarouter.R$id { int title; }'
Maybe this is program field 'com.JimSoft.Edu.LearnWithEnuma.R$attr { int title; }'
Maybe this is program field 'com.JimSoft.Edu.LearnWithEnuma.R$id { int title; }'
Maybe this is program field 'com.google.android.gms.games.internal.player.Play erColumnNames { java.lang.String title; }'
Maybe this is program field 'com.google.android.gms.vision.barcode.Barcode$Con tactInfo { java.lang.String title; }'
Maybe this is program field 'com.google.android.gms.vision.barcode.Barcode$Url Bookmark { java.lang.String title; }'
Maybe this is library field 'android.R$attr { int title; }'
Maybe this is library field 'android.R$id { int title; }'
Maybe this is library field 'android.app.Notification$Action { java.lang.CharSequence title; }'
Maybe this is library field 'android.preference.PreferenceActivity$Header { java.lang.CharSequence title; }'
Note: android.support.v4.app.NotificationCompatJellybean accesses a declared field 'actionIntent' dynamically
Maybe this is program field 'android.support.v4.app.NotificationCompat$Action { android.app.PendingIntent actionIntent; }'
Maybe this is library field 'android.app.Notification$Action { android.app.PendingIntent actionIntent; }'
Note: the configuration keeps the entry point 'android.support.v4.view.ViewPager { void setAdapter(android.support.v4.view.PagerAdapter); }', but not the descriptor class 'android.support.v4.view.PagerAdapter'
Note: the configuration keeps the entry point 'android.support.v4.view.ViewPager { void setOnAdapterChangeListener(android.support.v4.view .ViewPager$OnAdapterChangeListener); }', but not the descriptor class 'android.support.v4.view.ViewPager$OnAdapterChange Listener'
Note: the configuration keeps the entry point 'android.support.v4.view.ViewPager { void setOnPageChangeListener(android.support.v4.view.Vi ewPager$OnPageChangeListener); }', but not the descriptor class 'android.support.v4.view.ViewPager$OnPageChangeLis tener'
Note: the configuration keeps the entry point 'android.support.v4.widget.DrawerLayout { void setDrawerListener(android.support.v4.widget.Drawer Layout$DrawerListener); }', but not the descriptor class 'android.support.v4.widget.DrawerLayout$DrawerList ener'
Note: the configuration keeps the entry point 'android.support.v4.widget.NestedScrollView { void setOnScrollChangeListener(android.support.v4.widge t.NestedScrollView$OnScrollChangeListener); }', but not the descriptor class 'android.support.v4.widget.NestedScrollView$OnScro llChangeListener'
Note: the configuration keeps the entry point 'android.support.v4.widget.SlidingPaneLayout { void setPanelSlideListener(android.support.v4.widget.Sl idingPaneLayout$PanelSlideListener); }', but not the descriptor class 'android.support.v4.widget.SlidingPaneLayout$Panel SlideListener'
Note: the configuration keeps the entry point 'android.support.v4.widget.SwipeRefreshLayout { void setOnRefreshListener(android.support.v4.widget.Swi peRefreshLayout$OnRefreshListener); }', but not the descriptor class 'android.support.v4.widget.SwipeRefreshLayout$OnRe freshListener'
Note: the configuration keeps the entry point 'android.support.v7.app.MediaRouteButton { void setRouteSelector(android.support.v7.media.MediaRou teSelector); }', but not the descriptor class 'android.support.v7.media.MediaRouteSelector'
Note: the configuration keeps the entry point 'android.support.v7.app.MediaRouteButton { void setDialogFactory(android.support.v7.app.MediaRoute DialogFactory); }', but not the descriptor class 'android.support.v7.app.MediaRouteDialogFactory'
Note: the configuration keeps the entry point 'android.support.v7.view.menu.ActionMenuItemView { void setItemInvoker(android.support.v7.view.menu.MenuBu ilder$ItemInvoker); }', but not the descriptor class 'android.support.v7.view.menu.MenuBuilder$ItemInvo ker'
Note: the configuration keeps the entry point 'android.support.v7.view.menu.ActionMenuItemView { void setPopupCallback(android.support.v7.view.menu.Acti onMenuItemView$PopupCallback); }', but not the descriptor class 'android.support.v7.view.menu.ActionMenuItemView$P opupCallback'
Note: the configuration keeps the entry point 'android.support.v7.widget.ActionBarContainer { void setTabContainer(android.support.v7.widget.Scrollin gTabContainerView); }', but not the descriptor class 'android.support.v7.widget.ScrollingTabContainerVi ew'
Note: the configuration keeps the entry point 'android.support.v7.widget.ActionBarOverlayLayout { void setActionBarVisibilityCallback(android.support.v7. widget.ActionBarOverlayLayout$ActionBarVisibilityC allback); }', but not the descriptor class 'android.support.v7.widget.ActionBarOverlayLayout$ ActionBarVisibilityCallback'
Note: the configuration keeps the entry point 'android.support.v7.widget.ActionMenuView { void setPresenter(android.support.v7.widget.ActionMenuP resenter); }', but not the descriptor class 'android.support.v7.widget.ActionMenuPresenter'
Note: the configuration keeps the entry point 'android.support.v7.widget.ActionMenuView { void setOnMenuItemClickListener(android.support.v7.widg et.ActionMenuView$OnMenuItemClickListener); }', but not the descriptor class 'android.support.v7.widget.ActionMenuView$OnMenuIt emClickListener'
Note: the configuration keeps the entry point 'android.support.v7.widget.ActivityChooserView { void setActivityChooserModel(android.support.v7.widget. ActivityChooserModel); }', but not the descriptor class 'android.support.v7.widget.ActivityChooserModel'
Note: the configuration keeps the entry point 'android.support.v7.widget.ActivityChooserView { void setProvider(android.support.v4.view.ActionProvider ); }', but not the descriptor class 'android.support.v4.view.ActionProvider'
Note: the configuration keeps the entry point 'android.support.v7.widget.ContentFrameLayout { void setAttachListener(android.support.v7.widget.Conten tFrameLayout$OnAttachListener); }', but not the descriptor class 'android.support.v7.widget.ContentFrameLayout$OnAt tachListener'
Note: the configuration keeps the entry point 'android.support.v7.widget.FitWindowsFrameLayout { void setOnFitSystemWindowsListener(android.support.v7.w idget.FitWindowsViewGroup$OnFitSystemWindowsListen er); }', but not the descriptor class 'android.support.v7.widget.FitWindowsViewGroup$OnF itSystemWindowsListener'
Note: the configuration keeps the entry point 'android.support.v7.widget.FitWindowsLinearLayout { void setOnFitSystemWindowsListener(android.support.v7.w idget.FitWindowsViewGroup$OnFitSystemWindowsListen er); }', but not the descriptor class 'android.support.v7.widget.FitWindowsViewGroup$OnF itSystemWindowsListener'
Note: the configuration keeps the entry point 'android.support.v7.widget.MenuPopupWindow$MenuDro pDownListView { void setHoverListener(android.support.v7.widget.MenuIte mHoverListener); }', but not the descriptor class 'android.support.v7.widget.MenuItemHoverListener'
Note: the configuration keeps the entry point 'android.support.v7.widget.SearchView { void setOnQueryTextListener(android.support.v7.widget.S earchView$OnQueryTextListener); }', but not the descriptor class 'android.support.v7.widget.SearchView$OnQueryTextL istener'
Note: the configuration keeps the entry point 'android.support.v7.widget.SearchView { void setOnCloseListener(android.support.v7.widget.Searc hView$OnCloseListener); }', but not the descriptor class 'android.support.v7.widget.SearchView$OnCloseListe ner'
Note: the configuration keeps the entry point 'android.support.v7.widget.SearchView { void setOnSuggestionListener(android.support.v7.widget. SearchView$OnSuggestionListener); }', but not the descriptor class 'android.support.v7.widget.SearchView$OnSuggestion Listener'
Note: the configuration keeps the entry point 'android.support.v7.widget.SearchView { void setSuggestionsAdapter(android.support.v4.widget.Cu rsorAdapter); }', but not the descriptor class 'android.support.v4.widget.CursorAdapter'
Note: the configuration keeps the entry point 'android.support.v7.widget.SearchView$SearchAutoCo mplete { void setSearchView(android.support.v7.widget.SearchView ); }', but not the descriptor class 'android.support.v7.widget.SearchView'
Note: the configuration keeps the entry point 'android.support.v7.widget.Toolbar { void setOnMenuItemClickListener(android.support.v7.widg et.Toolbar$OnMenuItemClickListener); }', but not the descriptor class 'android.support.v7.widget.Toolbar$OnMenuItemClick Listener'
Note: the configuration keeps the entry point 'android.support.v7.widget.ViewStubCompat { void setOnInflateListener(android.support.v7.widget.Vie wStubCompat$OnInflateListener); }', but not the descriptor class 'android.support.v7.widget.ViewStubCompat$OnInflat eListener'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.AdView { void setInAppPurchaseListener(com.google.android.gms.ad s.purchase.InAppPurchaseListener); }', but not the descriptor class 'com.google.android.gms.ads.purchase.InAppPurchase Listener'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.AdView { void setAdSize(com.google.android.gms.ads.AdSize); }', but not the descriptor class 'com.google.android.gms.ads.AdSize'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.AdView { void setAdListener(com.google.android.gms.ads.AdListene r); }', but not the descriptor class 'com.google.android.gms.ads.AdListener'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.BaseAdView { void setAdListener(com.google.android.gms.ads.AdListene r); }', but not the descriptor class 'com.google.android.gms.ads.AdListener'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.BaseAdView { void setAdSize(com.google.android.gms.ads.AdSize); }', but not the descriptor class 'com.google.android.gms.ads.AdSize'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.BaseAdView { void setInAppPurchaseListener(com.google.android.gms.ad s.purchase.InAppPurchaseListener); }', but not the descriptor class 'com.google.android.gms.ads.purchase.InAppPurchase Listener'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.NativeExpressAdView { void setInAppPurchaseListener(com.google.android.gms.ad s.purchase.InAppPurchaseListener); }', but not the descriptor class 'com.google.android.gms.ads.purchase.InAppPurchase Listener'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.NativeExpressAdView { void setAdSize(com.google.android.gms.ads.AdSize); }', but not the descriptor class 'com.google.android.gms.ads.AdSize'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.NativeExpressAdView { void setAdListener(com.google.android.gms.ads.AdListene r); }', but not the descriptor class 'com.google.android.gms.ads.AdListener'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.doubleclick.PublisherA dView { void setAdListener(com.google.android.gms.ads.AdListene r); }', but not the descriptor class 'com.google.android.gms.ads.AdListener'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.doubleclick.PublisherA dView { void setAdSizes(com.google.android.gms.ads.AdSize[]); }', but not the descriptor class 'com.google.android.gms.ads.AdSize'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.doubleclick.PublisherA dView { void setAppEventListener(com.google.android.gms.ads.dou bleclick.AppEventListener); }', but not the descriptor class 'com.google.android.gms.ads.doubleclick.AppEventLi stener'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.doubleclick.PublisherA dView { void setCorrelator(com.google.android.gms.ads.Correlato r); }', but not the descriptor class 'com.google.android.gms.ads.Correlator'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.doubleclick.PublisherA dView { void setOnCustomRenderedAdLoadedListener(com.google.and roid.gms.ads.doubleclick.OnCustomRenderedAdLoadedL istener); }', but not the descriptor class 'com.google.android.gms.ads.doubleclick.OnCustomRe nderedAdLoadedListener'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.formats.NativeAdView { void setNativeAd(com.google.android.gms.ads.formats.Nat iveAd); }', but not the descriptor class 'com.google.android.gms.ads.formats.NativeAd'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.search.SearchAdView { void setAdListener(com.google.android.gms.ads.AdListene r); }', but not the descriptor class 'com.google.android.gms.ads.AdListener'
Note: the configuration keeps the entry point 'com.google.android.gms.ads.search.SearchAdView { void setAdSize(com.google.android.gms.ads.AdSize); }', but not the descriptor class 'com.google.android.gms.ads.AdSize'
Note: the configuration keeps the entry point 'com.google.android.gms.flags.impl.FlagProviderImp l { void init(com.google.android.gms.dynamic.zzd); }', but not the descriptor class 'com.google.android.gms.dynamic.zzd'
Note: the configuration keeps the entry point 'com.google.android.gms.plus.PlusOneButton { void setOnPlusOneClickListener(com.google.android.gms.p lus.PlusOneButton$OnPlusOneClickListener); }', but not the descriptor class 'com.google.android.gms.plus.PlusOneButton$OnPlusO neClickListener'
Note: there were 3 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 2 classes trying to access generic signatures using reflection.
You should consider keeping the signature attributes
(using '-keepattributes Signature').
(http://proguard.sourceforge.net/manual/troubleshooting.html#attributes)
Note: there were 47 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using '-keep').
(http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 21 unresolved dynamic references to classes or interfaces.
You should check if you need to specify additional program jars.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Note: there were 3 accesses to class members by means of introspection.
You should consider explicitly keeping the mentioned class members
(using '-keep' or '-keepclassmembers').
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclassmember)
Warning:there were 4 unresolved references to library class members.
You probably need to update the library versions.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
:app:transformClassesAndResourcesWithProguardForRe lease FAILED
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForR elease'.
> java.io.IOException: Please correct the above warnings first.
Information:BUILD FAILED
Information:Total time: 4.534 secs
Information:1 error
Information:6 warnings
Information:See complete output in console[/PHP]

Y esto en event log:
[PHP]19:13:05 Gradle sync started
19:13:06 Gradle sync completed
19:13:06 Executing tasks: [:app:generateDebugSources, :app:prepareDebugUnitTestDependencies, :app:mockableAndroidJar, :app:generateDebugAndroidTestSources]
19:13:08 Gradle build finished in 1s 380ms
19:13:23 Executing tasks: [:app:assembleRelease]
19:13:28 Gradle build finished with 1 error(s) and 6 warning(s) in 4s 573ms
19:13:28 Generate Signed APK: Errors while building APK. You can find the errors in the 'Messages' view.[/PHP]

Gracias nuevamente.
Responder Con Cita
  #4  
Viejo 30/06/16, 09:05:00
Array

[xs_avatar]
mocelet mocelet no está en línea
Desarrollador
 
Fecha de registro: may 2011
Localización: Madrid
Mensajes: 2,203
Tu operador: -

A todo esto, ¿por qué tienes puesto compileOptions.encoding = 'ISO-8859-1' en el build.gradle? Es mejor trabajar siempre con UTF-8, se ahorra uno quebraderos de cabeza con la codificación luego.

Posiblemente la solución no era quitar el BOM sino quitar esa línea y asegurarse de que todo es UTF-8.

Sobre los errores de gradle, es tan poco intuitivo que uno acaba buscando en stackoverflow. ¿Cuando te compilaba en eclipse también usabas target 24 y la versión alpha de la appcompat? Ahí puede haber algún bug, o que alguna de las bibliotecas que usas no se lleve bien con las nuevas versiones.
__________________
El mejor Cuatro en Raya de Android (Hilo en HTCMania, Play Store) ¡Un millón de descargas!
Responder Con Cita
Gracias de parte de:
  #5  
Viejo 30/06/16, 09:22:52
Array

[xs_avatar]
kriogeN kriogeN no está en línea
Colaborador/a
· Votos compra/venta: (1)
 
Fecha de registro: oct 2010
Localización: Murcia
Mensajes: 4,637
Modelo de smartphone: Samsung Galaxy S7 Edge SM-G935F
Tu operador: Vodafone
Tienes un problema de configuración del ProGuard, deberás adaptarlo para que funcione con tu app o eliminar el Minify.
Responder Con Cita
Gracias de parte de:
Respuesta

Estás aquí
Regresar   Portal | Indice > Todo sobre Android > Programación y Desarrollo para Android



Hora actual: 16:33:33 (GMT +1)



User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.

Contactar por correo / Contact by mail / 邮件联系 /