shadowsocksrr/shadowsocksr-android

无法编译起来

fandeus opened this issue · 0 comments

我查了很多资料,这个项目是使用Scala写的。其他的资料还稍微有点,Scala的资料少得可怜,YouTube上有些教程。都是三年前的。
根据我找的方式,编译起来好多错误日志,根本无法部署在手机调试,想学这个SSR协议,也不知道怎么入手了。
Listening for transport dt_socket at address: 55323 Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0 [info] Loading global plugins from /Users/Ren/.sbt/0.13/plugins [info] Loading project definition from /Users/Ren/David/VPN/shadowsocksrScala/project [info] Set current project to shadowsocksr (in build file:/Users/Ren/David/VPN/shadowsocksrScala/) [info] Defining */*:ideaPort [info] The new value will be used by compile:compile, test:compile [info] Reapplying settings... [info] Set current project to shadowsocksr (in build file:/Users/Ren/David/VPN/shadowsocksrScala/) [IJ]> ;reload; set _root_.org.jetbrains.sbt.StructureKeys.sbtStructureOptions in Global := "download resolveClassifiers" ;*/*:dumpStructureTo /private/var/folders/lp/2zm2wfk17z98lz165_chjg4r0000gn/T/sbt-structure.xml; session clear-all ; set ideaPort in Global := 55269 [info] Loading global plugins from /Users/Ren/.sbt/0.13/plugins [info] Loading project definition from /Users/Ren/David/VPN/shadowsocksrScala/project [warn] Discarding 1 session setting. Use 'session save' to persist session settings. [info] Set current project to shadowsocksr (in build file:/Users/Ren/David/VPN/shadowsocksrScala/) [info] Defining */*:sbtStructureOptions [info] The new value will be used by */*:ssOptions [info] Reapplying settings... [info] Set current project to shadowsocksr (in build file:/Users/Ren/David/VPN/shadowsocksrScala/) [info] Updating {file:/Users/Ren/David/VPN/shadowsocksrScala/}shadowsocksrscala... [info] Resolving org.scala-lang#scala-library;2.11.8 ... [info] Resolving com.android.support#cardview-v7;25.3.1 ... [info] Resolving com.android.support#support-annotations;25.3.1 ... [info] Resolving com.android.support#design;25.3.1 ... [info] Resolving com.android.support#support-v4;25.3.1 ... [info] Resolving com.android.support#support-compat;25.3.1 ... [info] Resolving com.android.support#support-media-compat;25.3.1 ... [info] Resolving com.android.support#support-core-utils;25.3.1 ... [info] Resolving com.android.support#support-core-ui;25.3.1 ... [info] Resolving com.android.support#support-fragment;25.3.1 ... [info] Resolving com.android.support#appcompat-v7;25.3.1 ... [info] Resolving com.android.support#support-vector-drawable;25.3.1 ... [info] Resolving com.android.support#animated-vector-drawable;25.3.1 ... [info] Resolving com.android.support#recyclerview-v7;25.3.1 ... [info] Resolving com.android.support#transition;25.3.1 ... [info] Resolving com.android.support#gridlayout-v7;25.3.1 ... [info] Resolving com.android.support#preference-v14;25.3.1 ... [info] Resolving com.android.support#preference-v7;25.3.1 ... [info] Resolving com.evernote#android-job;1.1.3 ... [info] Resolving net.vrallev.android#cat;1.0.5 ... [info] Resolving com.github.clans#fab;1.6.4 ... [info] Resolving com.github.jorgecastilloprz#fabprogresscircle;1.01 ... [info] Resolving com.google.android.gms#play-services-analytics;10.0.1 ... [info] Resolving com.google.android.gms#play-services-analytics-impl;10.0.1 ... [info] Resolving com.google.android.gms#play-services-base;10.0.1 ... [info] Resolving com.google.android.gms#play-services-basement;10.0.1 ... [info] Resolving com.google.android.gms#play-services-tasks;10.0.1 ... [info] Resolving com.google.android.gms#play-services-tagmanager-v4-impl;10.0.1 ... [info] Resolving com.google.android.gms#play-services-gcm;10.0.1 ... [info] Resolving com.google.android.gms#play-services-iid;10.0.1 ... [info] Resolving com.j256.ormlite#ormlite-android;5.0 ... [info] Resolving com.j256.ormlite#ormlite-core;5.0 ... [info] Resolving com.mikepenz#fastadapter;2.1.5 ... [info] Resolving com.mikepenz#iconics-core;2.8.2 ... [info] Resolving com.mikepenz#materialdrawer;5.8.1 ... [info] Resolving com.mikepenz#materialize;1.0.0 ... [info] Resolving com.twofortyfouram#android-plugin-api-for-locale;1.0.2 ... [info] Resolving net.jcip#jcip-annotations;1.0 ... [info] Resolving dnsjava#dnsjava;2.1.7 ... [info] Resolving eu.chainfire#libsuperuser;1.0.0.+ ... [info] Resolving eu.chainfire#libsuperuser;1.0.0.+ ... [info] Resolving me.dm7.barcodescanner#zxing;1.9.8 ... [info] Resolving me.dm7.barcodescanner#core;1.9.8 ... [info] Resolving com.google.zxing#core;3.3.0 ... [info] Resolving net.glxn.qrgen#android;2.0 ... [info] Resolving net.glxn.qrgen#core;2.0 ... [info] Resolving com.squareup.okhttp3#okhttp;3.8.0 ... [info] Resolving com.squareup.okio#okio;1.13.0 ... [info] Resolving com.google.code.findbugs#jsr305;1.3.+ ... [info] Resolving com.google.code.findbugs#jsr305;1.3.+ ... [info] Resolving net.sf.proguard#proguard-base;5.3.2 ... [info] Resolving org.scala-lang#scala-compiler;2.11.8 ... [info] Resolving org.scala-lang#scala-reflect;2.11.8 ... [info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.4 ... [info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.4 ... [info] Resolving jline#jline;2.12.1 ... [info] Done updating. [warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible: [warn] [warn] * com.android.support:appcompat-v7:25.3.1 is selected over {24.2.0, 25.1.0, 25.0.1} [warn] +- com.android.support:preference-v14:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:design:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:preference-v7:25.3.1 (depends on 25.3.1) [warn] +- com.mikepenz:materialdrawer:5.8.1 (depends on 25.0.1) [warn] +- com.mikepenz:fastadapter:2.1.5 (depends on 25.0.1) [warn] +- com.mikepenz:iconics-core:2.8.2 (depends on 25.1.0) [warn] +- com.mikepenz:materialize:1.0.0 (depends on 24.2.0) [warn] [warn] * com.android.support:support-v4:25.3.1 is selected over {24.0.0, 22.2.0} [warn] +- com.android.support:preference-v14:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:design:25.3.1 (depends on 25.3.1) [warn] +- me.dm7.barcodescanner:core:1.9.8 (depends on 25.3.1) [warn] +- com.android.support:preference-v7:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:transition:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:appcompat-v7:25.3.1 (depends on 25.3.1) [warn] +- com.github.jorgecastilloprz:fabprogresscircle:1.01 (depends on 22.2.0) [warn] +- com.google.android.gms:play-services-basement:10.0.1 (depends on 24.0.0) [warn] [warn] * com.android.support:support-compat:25.3.1 is selected over 24.2.0 [warn] +- com.android.support:recyclerview-v7:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:support-core-ui:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:support-v4:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:gridlayout-v7:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:support-core-utils:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:support-media-compat:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:support-vector-drawable:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:support-fragment:25.3.1 (depends on 25.3.1) [warn] +- com.mikepenz:materialize:1.0.0 (depends on 24.2.0) [warn] [warn] * com.android.support:support-annotations:25.3.1 is selected over {19, 25.0.1, 24.2.0, 25.0.0} [warn] +- com.android.support:cardview-v7:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:support-core-ui:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:support-media-compat:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:transition:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:recyclerview-v7:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:support-core-utils:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:support-compat:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:support-vector-drawable:25.3.1 (depends on 25.3.1) [warn] +- com.android.support:appcompat-v7:25.3.1 (depends on 25.3.1) [warn] +- com.evernote:android-job:1.1.3 (depends on 25.0.0) [warn] +- net.vrallev.android:cat:1.0.5 (depends on 24.2.0) [warn] +- com.mikepenz:materialdrawer:5.8.1 (depends on 25.0.1) [warn] +- com.mikepenz:fastadapter:2.1.5 (depends on 25.0.1) [warn] +- com.twofortyfouram:android-plugin-api-for-locale:1.0.2 (depends on 19) [warn] [warn] Run 'evicted' to see detailed eviction warnings [info] Unpacking aar: cardview-v7-25.3.1.aar to com.android.support-cardview-v7-25.3.1 [info] Resolving com.twofortyfouram#android-plugin-api-for-locale;1.0.2 ... [info] Resolving net.jcip#jcip-annotations;1.0 ... [info] Resolving com.android.support#gridlayout-v7;25.3.1 ... [info] Resolving com.android.support#support-core-ui;25.3.1 ... [info] Resolving org.scala-lang#scala-library;2.11.8 ... [info] Unpacking aar: design-25.3.1.aar to com.android.support-design-25.3.1 [info] Resolving com.google.zxing#core;3.3.0 ... [info] Resolving com.android.support#support-fragment;25.3.1 ... [info] Resolving com.mikepenz#materialize;1.0.0 ... [info] Resolving com.android.support#animated-vector-drawable;25.3.1 ... [info] Resolving com.android.support#appcompat-v7;25.3.1 ... [info] Resolving com.android.support#transition;25.3.1 ... [info] Resolving com.android.support#cardview-v7;25.3.1 ... [info] Resolving com.j256.ormlite#ormlite-android;5.0 ... [info] Resolving com.mikepenz#iconics-core;2.8.2 ... [info] Resolving net.glxn.qrgen#core;2.0 ... [info] Resolving com.mikepenz#fastadapter;2.1.5 ... [info] Resolving com.android.support#design;25.3.1 ... [info] Resolving net.vrallev.android#cat;1.0.5 ... [info] Resolving net.glxn.qrgen#android;2.0 ... [info] Unpacking aar: support-v4-25.3.1.aar to com.android.support-support-v4-25.3.1 [info] Resolving com.android.support#recyclerview-v7;25.3.1 ... [info] Resolving com.android.support#support-compat;25.3.1 ... [info] Unpacking aar: support-compat-25.3.1.aar to com.android.support-support-compat-25.3.1 [info] Resolving eu.chainfire#libsuperuser;1.0.0.201811281328 ... [info] Resolving com.github.jorgecastilloprz#fabprogresscircle;1.01 ... [info] Resolving com.android.support#support-vector-drawable;25.3.1 ... [info] Resolving com.android.support#preference-v7;25.3.1 ... [info] Resolving dnsjava#dnsjava;2.1.7 ... [info] Resolving com.mikepenz#materialdrawer;5.8.1 ... [info] Resolving com.j256.ormlite#ormlite-core;5.0 ... [info] Unpacking aar: support-media-compat-25.3.1.aar to com.android.support-support-media-compat-25.3.1 [info] Resolving com.android.support#preference-v14;25.3.1 ... [info] Resolving com.github.clans#fab;1.6.4 ... [info] Resolving com.android.support#support-media-compat;25.3.1 ... [info] Resolving com.squareup.okio#okio;1.13.0 ... [info] Resolving com.squareup.okhttp3#okhttp;3.8.0 ... [info] Resolving com.evernote#android-job;1.1.3 ... [info] Resolving com.android.support#support-annotations;25.3.1 ... [info] Unpacking aar: support-core-utils-25.3.1.aar to com.android.support-support-core-utils-25.3.1 [info] Resolving com.android.support#support-core-utils;25.3.1 ... [info] Unpacking aar: support-core-ui-25.3.1.aar to com.android.support-support-core-ui-25.3.1 [info] Unpacking aar: support-fragment-25.3.1.aar to com.android.support-support-fragment-25.3.1 [info] Unpacking aar: appcompat-v7-25.3.1.aar to com.android.support-appcompat-v7-25.3.1 [info] Unpacking aar: support-vector-drawable-25.3.1.aar to com.android.support-support-vector-drawable-25.3.1 [info] Unpacking aar: animated-vector-drawable-25.3.1.aar to com.android.support-animated-vector-drawable-25.3.1 [info] Unpacking aar: recyclerview-v7-25.3.1.aar to com.android.support-recyclerview-v7-25.3.1 [info] Unpacking aar: transition-25.3.1.aar to com.android.support-transition-25.3.1 [info] Unpacking aar: gridlayout-v7-25.3.1.aar to com.android.support-gridlayout-v7-25.3.1 [info] Unpacking aar: android-job-1.1.3.aar to com.evernote-android-job-1.1.3 [info] Unpacking aar: fab-1.6.4.aar to com.github.clans-fab-1.6.4 [info] Unpacking aar: fabprogresscircle-1.01.aar to com.github.jorgecastilloprz-fabprogresscircle-1.01 [info] Unpacking aar: play-services-analytics-10.0.1.aar to com.google.android.gms-play-services-analytics-10.0.1 [info] Unpacking aar: play-services-analytics-impl-10.0.1.aar to com.google.android.gms-play-services-analytics-impl-10.0.1 [info] Unpacking aar: play-services-base-10.0.1.aar to com.google.android.gms-play-services-base-10.0.1 [info] Resolving net.sf.proguard#proguard-base;5.3.2 ... [info] Unpacking aar: play-services-basement-10.0.1.aar to com.google.android.gms-play-services-basement-10.0.1 [info] Unpacking aar: play-services-tasks-10.0.1.aar to com.google.android.gms-play-services-tasks-10.0.1 [info] Unpacking aar: play-services-tagmanager-v4-impl-10.0.1.aar to com.google.android.gms-play-services-tagmanager-v4-impl-10.0.1 [info] Unpacking aar: play-services-gcm-10.0.1.aar to com.google.android.gms-play-services-gcm-10.0.1 [info] Unpacking aar: play-services-iid-10.0.1.aar to com.google.android.gms-play-services-iid-10.0.1 [info] Unpacking aar: fastadapter-2.1.5.aar to com.mikepenz-fastadapter-2.1.5 [info] Unpacking aar: iconics-core-2.8.2.aar to com.mikepenz-iconics-core-2.8.2 [info] Unpacking aar: materialdrawer-5.8.1.aar to com.mikepenz-materialdrawer-5.8.1 [info] Unpacking aar: materialize-1.0.0.aar to com.mikepenz-materialize-1.0.0 [info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.4 ... [info] Resolving org.scala-lang#scala-compiler;2.11.8 ... [info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.4 ... [info] Resolving jline#jline;2.12.1 ... [info] Resolving org.scala-lang#scala-reflect;2.11.8 ... [warn] /Users/Ren/David/VPN/shadowsocksrScala/src/main/AndroidManifest.xml:22:5-23:45 Warning: [warn] Element uses-feature#android.hardware.camera at AndroidManifest.xml:22:5-23:45 duplicated with element declared at AndroidManifest.xml:16:5-17:45 [info] Collecting resources [info] Performing full resource merge [info] QueuedCruncher is using /Users/Ren/Library/Android/sdk/build-tools/29.0.2/aapt [info] Processing resources [info] QueuedCruncher is using /Users/Ren/Library/Android/sdk/build-tools/29.0.2/aapt [warn] warning: string 'kcp_port' has no default translation. [warn] warning: string 'kcp_port_summary' has no default translation. [warn] warning: string 'kcp_summary' has no default translation. [warn] warning: string 'kcpcli' has no default translation. [warn] warning: string 'remote_dns' has no default translation. [warn] warning: string 'remote_dns_summary' has no default translation. [info] Packaging resources: resources-debug.ap_ [info] QueuedCruncher is using /Users/Ren/Library/Android/sdk/build-tools/29.0.2/aapt [warn] warning: string 'kcp_port' has no default translation. [warn] warning: string 'kcp_port_summary' has no default translation. [warn] warning: string 'kcp_summary' has no default translation. [warn] warning: string 'kcpcli' has no default translation. [warn] warning: string 'remote_dns' has no default translation. [warn] warning: string 'remote_dns_summary' has no default translation. [info] Writing structure to /private/var/folders/lp/2zm2wfk17z98lz165_chjg4r0000gn/T/sbt-structure.xml... [info] Done. [success] Total time: 32 s, completed 2019-8-27 15:14:36 [info] Reapplying settings... [info] Set current project to shadowsocksr (in build file:/Users/Ren/David/VPN/shadowsocksrScala/) [info] Defining */*:ideaPort [info] The new value will be used by compile:compile, test:compile [info] Reapplying settings... [info] Set current project to shadowsocksr (in build file:/Users/Ren/David/VPN/shadowsocksrScala/) [IJ]> cccc [error] Not a valid command: cccc [error] Not a valid project ID: cccc [error] Expected ':' (if selecting a configuration)