2017-01-06 5 views
0

을 반환하지만, 때마다 나는 키 스토어를 만들고 난이 오류가 얼굴을 내보낼 :이클립스 - Proguard와 오류 코드 내가 이클립스 내 프로젝트의 서명 된 APK를 수출하려고 한

Proguard returned with error code 1. See console 

# To enable ProGuard in your project, edit project.properties 
# to define the proguard.config property as described in that file. 
# 
# Add project specific ProGuard rules here. 
# By default, the flags in this file are appended to flags specified 
# in ${sdk.dir}/tools/proguard/proguard-android.txt 
# You can edit the include path and order by changing the ProGuard 
# include property in project.properties. 
# 
# For more details, see 
# http://developer.android.com/guide/developing/tools/proguard.html 

# Add any project specific keep options here: 

# If your project uses WebView with JS, uncomment the following 
# and specify the fully qualified class name to the JavaScript interface 
# class: 
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { 
# public *; 
#} 
-keep class android.support.v4.** { *; } 
-dontwarn android.support.v4.** 
-dontwarn javax.activation.** 
-dontwarn javax.security.** 
-dontwarn java.awt.** 
-libraryjars <java.home>/lib/rt.jar 
-keep class javax.** {*;} 
-keep class com.sun.** {*;} 
-keep class myjava.** {*;} 
-keep class org.apache.harmony.** {*;} 
-keep public class Mail {*;}   
-dontshrink 

이 내 난독 화 - project.txt 내가 몇 줄을 추가 한 것입니다

[2017-01-06 13:40:30 - IPTVPlayer] Dx 
trouble writing output: already prepared 
[2017-01-06 13:40:30 - IPTVPlayer] ------------------------------ 
[2017-01-06 13:40:30 - IPTVPlayer] Android Launch! 
[2017-01-06 13:40:30 - IPTVPlayer] adb is running normally. 
[2017-01-06 13:40:30 - IPTVPlayer] Performing com.simple.iptv.player.Player activity launch 
[2017-01-06 13:40:30 - IPTVPlayer] Automatic Target Mode: using device 'VS9804G11989257' 
[2017-01-06 13:40:30 - IPTVPlayer] Uploading IPTVPlayer.apk onto device 'VS9804G11989257' 
[2017-01-06 13:40:31 - IPTVPlayer] Installing IPTVPlayer.apk... 
[2017-01-06 13:40:35 - IPTVPlayer] Success! 
[2017-01-06 13:40:36 - IPTVPlayer] Starting activity com.simple.iptv.player.Player on device VS9804G11989257 
[2017-01-06 13:40:36 - IPTVPlayer] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.simple.iptv.player/.Player } 
[2017-01-06 13:41:18 - IPTVPlayer] New keystore C:\Users\Bahae Eddine\Desktop\Final Application\apk\IPTVPlayer-Final.apk has been created. 
[2017-01-06 13:41:18 - IPTVPlayer] Certificate fingerprints: 
[2017-01-06 13:41:18 - IPTVPlayer] MD5 : 73:B4:6D:5E:D1:59:FA:EB:34:8D:2F:F7:19:C7:4D:88 
[2017-01-06 13:41:18 - IPTVPlayer] SHA1: 92:7B:11:C3:1C:3B:67:00:BD:2A:5F:DC:7E:EE:BE:7E:25:4E:E8:64 
[2017-01-06 13:41:20 - IPTVPlayer] Proguard returned with error code 1. See console 
[2017-01-06 13:41:20 - IPTVPlayer] Error: Can't read [C:\Program Files\Java\jre1.8.0_111\lib\rt.jar] (Can't process class [com/oracle/net/Sdp$1.class] (Unsupported class version number [52.0] (maximum 51.0, Java 1.7))) 

이 내 로그입니다

# This file is automatically generated by Android Tools. 
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! 
# 
# This file must be checked in Version Control Systems. 
# 
# To customize properties used by the Ant build system edit 
# "ant.properties", and override values to adapt the script to your 
# project structure. 
# 
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 

# Project target. 

target=android-20 
proguard.config=proguard-project.txt 
android.library.reference.1=../google-play-services_lib 
+0

오류는 ProGuard가 Java 7 이하 만 지원한다는 것을 알려줍니다. – Zircon

+0

어떻게 컴파일 타겟 버전을 바꿀 수 있습니까? –

답변

0

오류 메시지가 모든 말 :이 내 project.properties입니다 (Unsupported class version number [52.0] (maximum 51.0, Java 1.7)))

=> 당신은 자바 8 사용하고 있지만 Proguard와은 당신이 자바 7 또는 변경을 사용해야 따라서 자바 7을 지원합니다 프로젝트의 타겟 버전을 Java 7 (1.7)로 컴파일합니다.

Eclipse의 Android 개발이 더 이상 지원되지 않으므로 AndroidStudio로 전환해야합니다.

+0

컴파일 대상을 1.7로 변경했지만 여전히 같은 문제가 있습니다. http://i.imgur.com/4cen1Jc.png –

+0

포함 된 JAR 파일을 확인 했습니까? 적어도 하나는 Java 8로 컴파일되었다고 가정합니다. – Robert

+0

그리고 Java 7을 사용하여 어떻게 컴파일 할 수 있습니까? 고맙습니다. –