我在最新版本的Android Studio上遇到此错误,同时我安装了Android SDK Platform API 25和Android SDK Build-Tools 25.
这是我的代码里面myDir.mkdirs();这段代码告诉我,Result的警告File.mkdirs()被忽略了.
我尝试修复此警告,但我失败了.
private void saveGIF() {
Toast.makeText(getApplicationContext(), "Gif Save", Toast.LENGTH_LONG).show();
String filepath123 = BuildConfig.VERSION_NAME;
try {
File myDir = new File(String.valueOf(Environment.getExternalStorageDirectory().toString()) + "/" + "NewyearGIF");enter code here
//My Statement Code This Line Show Me that Warning
myDir.mkdirs();
File file = new File(myDir, "NewyearGif_" + System.currentTimeMillis() + ".gif");
filepath123 = file.getPath();
InputStream is = getResources().openRawResource(this.ivDrawable);
BufferedInputStream bis = new BufferedInputStream(is);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte[] img = new byte[AccessibilityNodeInfoCompat.ACTION_NEXT_HTML_ELEMENT];
while (true) {
int current = bis.read(); …Run Code Online (Sandbox Code Playgroud) 我将Google Play服务依赖项升级到
Run Code Online (Sandbox Code Playgroud)classpath 'com.google.gms:google-services:4.2.0'
Run Code Online (Sandbox Code Playgroud)classpath 'com.google.gms:google-services:4.3.0'
我正在尝试使用JADX Dex-to-Java 反编译器反编译联系人重复删除器 Android 应用程序。但是,JADX 在输出中生成以下错误:
> /* JADX WARNING: inconsistent code. */
> /* Code decompiled incorrectly, please refer to instructions dump. */
> public String analysis() {
> /*
> r24 = this;
> r20 = 0;
> r0 = r20;
> r1 = r24;
> r1.add_count = r0;
> r0 = r24;
> r0 = r0.delete_history;
> r20 = r0;
> r20.clear();
> r20 = delete_history_count;
> r20.clear();
> r20 = work_to_do;
> r20 = r20.size(); …Run Code Online (Sandbox Code Playgroud) 我有这个错误:
$ adb push F:\ skylixwork\CollagePhoto\app\build\outputs\apk\app-debug.apk
/data/local/tmp/com.collagephoto java.io.IOException:现有连接被远程主机强行关闭
错误安装APK时
安装失败并显示消息INSTALL_CANCELED_BY_USER.通过卸载现有版本的apk(如果存在)然后重新安装,可能会解决此问题.
警告:卸载将删除应用程序数据!
要卸载现有应用程序吗?
ll com.android.support库必须使用完全相同的版本
规范(混合版本可能导致运行时崩溃)。找到版本28.0.0-alpha1,26.1.0。示例包括com.android.support:animated-vector-drawable:28.0.0-alpha1和com.android.support:customtabs:26.1.0 less ...(Ctrl + F1)有一些库,工具或不兼容的库,或可能导致错误的库。一种不兼容的情况是使用不是最新版本的Android支持库版本进行编译(或者特别是低于目标targetSdkVersion的版本)。
我的gradle依赖项:-
implementation 'com.google.firebase:firebase-ads:15.0.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
Run Code Online (Sandbox Code Playgroud)
关于此依赖项的警告-----------------------------
Run Code Online (Sandbox Code Playgroud)implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
testImplementation 'junit:junit:4.12'
implementation 'com.google.android.gms:play-services-vision:15.0.2'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.3.+'
implementation 'com.memetix:microsoft-translator-java-api:0.6.2'
implementation 'com.google.firebase:firebase-crash:16.0.1'
implementation 'com.facebook.android:audience-network-sdk:4.+'
Run Code Online (Sandbox Code Playgroud)
上传应用程序包失败。
在我更改依赖项的版本后
> classpath 'com.android.tools.build:gradle:3.5.0'
Run Code Online (Sandbox Code Playgroud)
3.4.1 至 3.5.0
我收到这个错误。
我是用这个方法解决的,但它是真的还是假的我不知道见下文
> bundle {
> density {
> // Different APKs are generated for devices with different screen densities; true by default.
> enableSplit true
> }
> abi {
> // Different APKs are generated for devices with different CPU architectures; true by default.
> enableSplit true
> }
> language {
> // This is disabled so that the App Bundle does NOT split the APK for each language. …Run Code Online (Sandbox Code Playgroud) android ×7
java ×4
apk ×1
build.gradle ×1
decompiling ×1
dex ×1
firebase ×1
gradle ×1
install ×1