问题只发生在发布版本或生成签名的apk上,当我构建调试时 - 没有这样的问题.
问题在升级到版本3.1后立即到达
Program type already present: com.android.vending.billing.IInAppBillingService
Message{kind=ERROR, text=Program type already present: com.android.vending.billing.IInAppBillingService, sources=[Unknown source file], tool name=Optional.of(D8)}
Run Code Online (Sandbox Code Playgroud)
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
implementation('org.apache.httpcomponents:httpmime:4.3') {
exclude module: "httpclient"
}
implementation 'com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.0'
implementation 'com.github.clans:fab:1.6.4'
implementation 'com.android.billingclient:billing:1.0'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.slider:library:1.1.5@aar'
implementation 'com.github.eggheadgames:Siren:1.5.0'
implementation 'me.leolin:ShortcutBadger:1.1.18@aar'
implementation 'me.everything:overscroll-decor-android:1.0.4'
implementation 'com.baoyz.pullrefreshlayout:library:1.2.0'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.slider:library:1.1.5@aar'
//implementation 'com.android.support:multidex:1.0.3'
implementation 'com.github.esafirm.android-image-picker:imagepicker:1.8.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.google.android.gms:play-services-places:12.0.0'
implementation 'com.google.android.gms:play-services-gcm:12.0.0'
implementation 'com.github.mukeshsolanki:country-picker-android:1.1.9'
implementation 'com.github.rey5137:material:1.2.4' …
Run Code Online (Sandbox Code Playgroud) 我的目标是获取用户选择的图片并使用它填充图像视图.然后,在单击按钮时,该图像将被发送到Parse数据库.我知道我必须将imageview转换为字节数组,但似乎不起作用.
任何帮助将受到高度赞赏.这是我的代码:
//send the imageviwew to parse database
public void sendToParseBtn (View view){
Bitmap bitmapImage = findViewById (R.id.imageView);
ImageView imageView = (ImageView) findViewById(R.id.imageView);
imageView.setImageBitmap(bitmapImage);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmapImage.compress(Bitmap.CompressFormat.JPEG, 40, stream);
byte[] byteArray = stream.toByteArray();
ParseFile file = new ParseFile("an.jpg",byteArray);
ParseObject object = new ParseObject("MyParseObject");
object.put("imageFile", file);
object.saveInBackground();
}
Run Code Online (Sandbox Code Playgroud)