更新库谷歌播放服务(和firebase也)到15.0.0后,我得到这样的错误:
java.lang.IllegalStateException: Unexpected inputs: ImmutableJarInput{name=com.google.android.gms:play-services-location-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/99.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-auth-api-phone-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/116.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-maps:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/108.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-base-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/103.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-core:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/94.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-analytics-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/120.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-location:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/111.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-common-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/93.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-tasks:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/104.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-base:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/117.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-basement-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/107.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-analytics-impl:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/112.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-auth:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/105.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-iid-license:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/119.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.firebase:firebase-analytics:12.0.1, file=/home/hahn/MyAndroidApp/build/intermediates/transforms/desugar/debug/97.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED},
ImmutableJarInput{name=com.google.android.gms:play-services-maps-license:12.0.1, …Run Code Online (Sandbox Code Playgroud) 我在我的 android 应用程序中使用 rxjava 库。在调试模式下,我的应用程序工作正常并且可以显示来自 API 的数据。
截图:http : //imgur.com/a/fRT17
但是在生成签名的 apk 后,我的应用程序无法显示来自 API 的数据,也不会在 logcat 中产生任何错误。
这是我的代码:
public class MainActivity extends AppCompatActivity {
private static final long DELAY_IN_MILLIS = 500;
private CompositeSubscription compositeSubscription = new CompositeSubscription();
private Subscription subscription;
private String lokasi ="kosong";
private String idLokasi = "kosong";
private LokasiData dataLokasi = new LokasiData();
private final String TAG = "BelajarRX";
private TextView txt;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Fabric.with(this, new Answers());
setContentView(R.layout.activity_main);
String TAG = "onCreate"; …Run Code Online (Sandbox Code Playgroud)