-1
に動作します(これは大規模なプロジェクトである)カントのデバッグビルドアプリが、それは私が手にエラーがあるアンドロイド6.0.1
Note: there were 10 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 239 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 27 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)
Warning: there were 2292 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with '-dontwarn' options.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Warning: there were 241 unresolved references to program class members.
Your input classes appear to be inconsistent.
You may need to recompile the code.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)
Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.
:app:transformClassesAndResourcesWithProguardForDebug FAILED
FAILURE: Build failed with an exception.
のGradleと私からThere'sa大きなログ出力最終的にproguard-rules.proをクリーンアップする必要があることを知っていますが、なぜそれがアンドロイド6.0.1で動作し、アンドロイド4.4.2では動作しません。ログは「ビルドが例外で失敗しました」と表示され、「--stacktraceで実行」しようとしましたが、例外が表示されません。
「アンドロイド6.0.1で作業し、アンドロイド4.4.2でない」とはどういう意味ですか?あなたのコードでSDK 23のコンパイルが必要で、 'compileSdkVersion'をより低いものに設定すると、クラスが見つからなくなります。問題は、なぜ 'compileSdkVersion'を下げるのですか?おそらく 'targetSdkVersion'や' minSdkVersion'を変更するつもりでした。 –
私のアプリケーションビルドのgradleには 'compileSdkVersion 26、buildToolsVersion" 25.0.3 "、minSdkVersion 16、targetSdkVersion 26'があります。 – Erik
私はアンドロイド6.0.1 Marshmallow API 23でアプリを実行できますが、4.4.2では実行できません。 – Erik