weixin_43323172
JackieTom049
2小时前发布
  • android-studio
  • android

如图,在学习RecycleView时试着实现书上的代码,遇到问题,为何每个图像都会有两个图片,我分明在onBindViewHolder重新设置了图片的imageResource

public class FruitAdapter2 extends RecyclerView.Adapter<FruitAdapter2.ViewHolder> {
    private List<Fruit> mFruitList;

    static class ViewHolder extends RecyclerView.ViewHolder {
        ImageView fruitImage;
        TextView fruitName;
        public ViewHolder(@NonNull View itemView) {
            super(itemView);
            fruitImage = (ImageView) itemView.findViewById(R.id.iv_fruit);
            fruitName = (TextView) itemView.findViewById(R.id.tv_fruit);
        }
    }

    public FruitAdapter2(List<Fruit> fruitList) {
        mFruitList = fruitList;
    }

    @NonNull
    @Override
    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.fruit_item, null, false);
        ViewHolder holder = new ViewHolder(view);
        return holder;
    }

    @Override
    public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
        Fruit fruit = mFruitList.get(position);
        holder.fruitImage.setImageResource(fruit.getFruitImage());
        holder.fruitName.setText(fruit.getFruitName());
    }

    @Override
    public int getItemCount() {
        return mFruitList.size();
    }

}

 

0个回复
litchuangshizhe
litchuangshizhe
3小时前发布
  • android-studio
  • android
  • visual studio
  • c#

我们应用要发布2.0版本,但是2.0版本和1.0版本从数据库结构到代码完全不同,接口请求地址也不同,现在后台说2.0的部署到服务器上后会占用80端口,1.0的接口就无法请求,那么用户已经在使用的1.0的版本如何进行更新?服务器都是同一个

1个回复
weixin_52131982
weixin_52131982
5小时前发布
  • android-studio
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Cannot resolve external dependency com.android.support:appcompat-v7:26. because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency com.android.support.constraint:constraint-layout:1.0.2 because no repositories are defined.
     Required by:
         project :app

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html


 

0个回复
qq_40424583
qq_40424583
18小时前发布
  • android-studio
  • android
  • java
  • 开发语言

最近在学着写个带有左侧菜单栏的 APP,用 Android Studio 建了一个 navigation drawer activity,在源码基础上改了改。 大概长这样

然后有个需求是,点其中一个菜单项,先跳转到一个弹窗在几个类型中选一下,然后再展示一个对应的 fragment 。为了这个在中间加的步骤,所以我把其中一个菜单项和他对应的 fragment 解绑了,然后给那个 item 绑了一个新 activity 作为 dialog,选择完成后再 finish 掉,并回调到原来的 activity,展示新 fragment 。

如图,点一下用作选择的按钮,结果如下:

这时候出了两问题:

一 .我是直接通过用 FragmentTransaction replace 了原本的 fragment,但是这里出现了 fragment 重叠的现象。 源码是不会出现重叠问题的,它好像也不是用这种动态加载的方式搞的,但是它的那些工具类让我实在搞不懂。

二.

我 finish 掉作为 dialog 的新 activity 后,回调到原本 activity,它虽然已经更换了 fragment,但是左侧的菜单项依然处于打开状态,还需要再点击屏幕其他地方,把它关掉,就感觉多此一举了。有啥办法直接回到主页面时不展示左侧菜单项。难道要搞个模仿屏幕点击事件吗?

希望有人能替我解决一下疑惑,不胜感激

0个回复
aaqian1
aaqian1
19小时前发布
  • android-studio
  • android

https://bbs.csdn.net/topics/391983172?page=2 这个网址说的是按一定频率来截图,下面有个评论说使用屏幕差异算法来实现截图,我的需求是:在自己的应用内部屏幕变化则截图,这里的屏幕变化指的是用户下滑等操作,不知道能否实现?各位大神help help me

0个回复
NutKinGCall
NutKinGCall
23小时前发布
  • html5
  • ios
  • android
  • objective-c

例如链接拼接参数点击下载后打开应用就能拿到参数,如果跳到appstore应该是另一个链接了吧,这种场景有什么大致的实现思路吗

0个回复
huochexia88888
huochexia88888
昨天发布
  • android-studio
  • apache
  • android

Android项目中,使用poi4.1.2写Word文件.docx时,

当调用val doc = XWPFDocument()时出现
java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/stream/XMLStreamReader;
        at org.apache.xmlbeans.XmlBeans.buildStreamToNodeMethod(XmlBeans.java:251)
        at org.apache.xmlbeans.XmlBeans.<clinit>(XmlBeans.java:138)
        at org.apache.xmlbeans.XmlBeans.typeLoaderForClassLoader(XmlBeans.java:719)

0个回复
TimeGo_sby
时间过了
昨天发布
  • android-studio
  • android
  • java

这是我在MainActivity读取控件的模式

我希望在Adapter文件中也可以读取主页面的数据

 

下面这张图是MainActivity中摄氏度转华氏度方法,在Adapter文件没法读取数据没法判断 

下面这张图片是Adapter文件中没法判断的代码

package com.zhangyubin.myweather.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.zhangyubin.myweather.R;
import com.zhangyubin.myweather.model.DailyForecast;

import java.util.List;

public class DailyForecastAdapter extends RecyclerView.Adapter<DailyForecastAdapter.ViewHolder> {

    private List<DailyForecast> dailyForecastList;
    private Context context;


    public DailyForecastAdapter(List<DailyForecast> dailyForecastList, Context context) {
        this.dailyForecastList = dailyForecastList;
        this.context = context;
    }

    @NonNull
    @Override
    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.rlv_item_daily_forecast, parent, false);
        ViewHolder holder = new ViewHolder(view);
        return holder;
    }

    @Override
    public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
        DailyForecast dailyForecast = dailyForecastList.get(position);

        holder.date.setText(dailyForecast.getDate());
        holder.icon.setImageResource(context.getResources().getIdentifier(dailyForecast.getIcon(), "drawable", context.getPackageName()));
        holder.temp.setText(dailyForecast.getTempMin() + "℃-" + dailyForecast.getTempMax() + "℃");
    }

    @Override
    public int getItemCount() {
        return dailyForecastList.size();

    }

    public class ViewHolder extends RecyclerView.ViewHolder {

        TextView date;
        ImageView icon;
        TextView temp;

        public ViewHolder(@NonNull View itemView) {
            super(itemView);

            date = itemView.findViewById(R.id.tv_daily_forecast_date);
            icon = itemView.findViewById(R.id.img_daily_forecast_icon);
            temp = itemView.findViewById(R.id.tv_daily_forecast_temp);

        }
    }
}

 

1个回复
weixin_43901138
zMeow
昨天发布
  • python
  • iphone
  • android
  • java
  • javascript

nodejs的npm安装的包不能用,提示'otfccdump' 不是内部或外部命令,也不是可运行的程序?

 

0个回复
QQQrrai
QQQrrai
昨天发布
  • android-studio
  • sqlite

语句

报错

 

0个回复
yuxiaodongge
yuxiaodongge
昨天发布
  • android

下午 7:44:12: Executing task 'installRelease'...
  
> Task :app:transformClassesWithDexBuilderForRelease
com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process E:\MVVM\mj\customer-app-android\app\build\intermediates\transforms\ajx\release\78.jar
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:593)
    at java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677)
    at java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:720)
    at com.android.ide.common.internal.WaitableExecutor.waitForTasksWithQuickFail(WaitableExecutor.java:146)
    at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.transform(DexArchiveBuilderTransform.java:405)
    at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:239)
    at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:235)
    at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
    at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:230)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
    at org.gradle.api.internal.project.taskfactory.IncrementalTaskInputsTaskAction.doExecute(IncrementalTaskInputsTaskAction.java:46)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
    at org.gradle.api.internal.project.taskfactory.AbstractIncrementalTaskAction.execute(AbstractIncrementalTaskAction.java:25)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$5.run(ExecuteActionsTaskExecuter.java:404)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:393)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:376)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:80)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:213)
    at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$0(ExecuteStep.java:32)
    at java.util.Optional.map(Optional.java:215)
    at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32)
    at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)
    at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:58)
    at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35)
    at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:48)
    at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:33)
    at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:39)
    at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)
    at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)
    at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:35)
    at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51)
    at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:45)
    at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:31)
    at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:201)
    at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:70)
    at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:45)
    at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)
    at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:43)
    at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:32)
    at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)
    at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:96)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:89)
    at java.util.Optional.map(Optional.java:215)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:38)
    at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:77)
    at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)
    at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)
    at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)
    at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:90)
    at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:48)
    at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:120)
    at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutionStateTaskExecuter.java:75)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:108)
    at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
    at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94)
    at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:73)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
    at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
    at org.gradle.execution.plan.DefaultPlanExecutor.process(DefaultPlanExecutor.java:74)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.executeWithServices(DefaultTaskExecutionGraph.java:178)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.execute(DefaultTaskExecutionGraph.java:154)
    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:41)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40)
    at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:24)
    at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:46)
    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:49)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:33)
    at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:383)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
    at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:247)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:159)
    at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:134)
    at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:58)
    at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:55)
    at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:82)
    at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:75)
    at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183)
    at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
    at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:75)
    at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:55)
    at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:54)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:58)
    at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
    at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:39)
    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:51)
    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:45)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:49)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:46)
    at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:78)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:46)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:31)
    at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:42)
    at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:28)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:52)
    at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:59)
    at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:36)
    at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:68)
    at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:38)
    at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:37)
    at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:26)
    at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
    at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
    at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:60)
    at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:32)
    at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:55)
    at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:41)
    at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:48)
    at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:32)
    at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
    at org.gradle.util.Swapper.swap(Swapper.java:38)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
    at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process E:\MVVM\mj\customer-app-android\app\build\intermediates\transforms\ajx\release\78.jar
    at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.launchProcessing(DexArchiveBuilderTransform.java:900)
    at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.lambda$convertToDexArchive$6(DexArchiveBuilderTransform.java:825)
    at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424)
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
    at com.android.builder.dexing.D8DexArchiveBuilder.getExceptionToRethrow(D8DexArchiveBuilder.java:124)
    at com.android.builder.dexing.D8DexArchiveBuilder.convert(D8DexArchiveBuilder.java:101)
    at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.launchProcessing(DexArchiveBuilderTransform.java:895)
    ... 6 more
Caused by: java.lang.IllegalArgumentException: Multiple entries with same key: Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View=Encoded method Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View and Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View=Encoded method Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View
    at com.android.tools.r8.com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:190)
    at com.android.tools.r8.com.google.common.collect.RegularImmutableMap.checkNoConflictInKeyBucket(RegularImmutableMap.java:109)
    at com.android.tools.r8.com.google.common.collect.RegularImmutableMap.fromEntryArray(RegularImmutableMap.java:95)
    at com.android.tools.r8.com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:373)
    at com.android.tools.r8.graph.AppInfo.computeDefinitions(AppInfo.java:57)
    at com.android.tools.r8.graph.AppInfo.getDefinitions(AppInfo.java:91)
    at com.android.tools.r8.graph.AppInfo.definitionFor(AppInfo.java:82)
    at com.android.tools.r8.ir.optimize.CodeRewriter.collectClassInitializerDefaults(CodeRewriter.java:1244)
    at com.android.tools.r8.ir.conversion.IRConverter.rewriteCode(IRConverter.java:711)
    at com.android.tools.r8.ir.conversion.IRConverter.convertMethodToDex(IRConverter.java:381)
    at com.android.tools.r8.ir.conversion.IRConverter.convertMethodsToDex(IRConverter.java:363)
    at com.android.tools.r8.ir.conversion.IRConverter.lambda$convertClassesToDex$2(IRConverter.java:354)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:117)
    at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:38)
    at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:77)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:260)
    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
    at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:56)
    at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:36)
    at com.android.tools.r8.ir.conversion.IRConverter.convertClassesToDex(IRConverter.java:354)
    at com.android.tools.r8.ir.conversion.IRConverter.convertToDex(IRConverter.java:269)
    at com.android.tools.r8.D8.optimize(D8.java:203)
    at com.android.tools.r8.D8.run(D8.java:163)
    at com.android.tools.r8.D8.lambda$run$1(D8.java:93)
    at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:55)
    at com.android.tools.r8.utils.ExceptionUtils.withD8CompilationHandler(ExceptionUtils.java:43)
    at com.android.tools.r8.D8.run(D8.java:90)
    at com.android.builder.dexing.D8DexArchiveBuilder.convert(D8DexArchiveBuilder.java:99)
    ... 7 more
    Suppressed: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Multiple entries with same key: Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View=Encoded method Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View and Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View=Encoded method Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View
        at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:502)
        at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:461)
        at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:83)
        at com.android.tools.r8.utils.ThreadUtils.awaitFutures(ThreadUtils.java:21)
        at com.android.tools.r8.ir.conversion.IRConverter.convertClassesToDex(IRConverter.java:356)
        ... 15 more
    [CIRCULAR REFERENCE:java.lang.IllegalArgumentException: Multiple entries with same key: Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View=Encoded method Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View and Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View=Encoded method Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View]

:app:transformClassesWithDexBuilderForRelease spend 58392ms

> Task :app:transformClassesWithDexBuilderForRelease FAILED
Tasks spend time > 50ms:
      00:58.39   :app:transformClassesWithDexBuilderForRelease
      00:51.92   :app:compileReleaseJavaWithJavac
      00:46.37   :app:processReleaseResources
      00:16.87   :immodule:compileReleaseJavaWithJavac
      00:11.90   :app:transformClassesWithAjxForRelease
      00:04.62   :app:mergeReleaseResources
      00:02.09   :uikit:compileReleaseJavaWithJavac
      00:01.82   :immodule:generateReleaseRFile
      00:01.27   :immodule:packageReleaseResources
      00:01.06   :app:processReleaseManifest
      00:00.96   :app:compileReleaseKotlin
      00:00.42   :app:javaPreCompileRelease
      00:00.34   :jrlib:compileReleaseJavaWithJavac
      00:00.33   :uikit:packageReleaseResources
      00:00.29   :app:mergeReleaseAssets
      00:00.25   :immodule:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease
      00:00.24   :immodule:fabricGenerateResourcesRelease
      00:00.19   :uikit:packageReleaseAssets
      00:00.14   :jrlib:compileReleaseKotlin
      00:00.10   :jrlib:packageReleaseResources
      00:00.10   :uikit:compileReleaseRenderscript
      00:00.08   :jrlib:generateReleaseRFile
      00:00.07   :app:checkReleaseClasspath
      00:00.06   :immodule:generateReleaseBuildConfig
      00:00.06   :uikit:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease
      00:00.05   :uikit:packageReleaseRenderscript
      00:00.05   :immodule:packageReleaseAssets
      00:00.05   :uikit:generateReleaseRFile

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithDexBuilderForRelease'.
> com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process E:\MVVM\mj\customer-app-android\app\build\intermediates\transforms\ajx\release\78.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3m 24s
69 actionable tasks: 20 executed, 49 up-to-date
下午 7:47:37: Task execution finished 'installRelease'.
 

1个回复
qq_41922018
qq_41922018
2天前发布
  • android

我需要在Android手机上实现一个AR应用,当手机拍摄实体的时候能够获取到他的空间三维坐标,进一步转换为经纬度坐标然后得到他的虚拟信息叠加上去。现在的问题是,我无法根据获取到所拍摄物体的三维坐标,尤其是手机离物体稍微有点远的情况下,我知道普通摄像头进行双目测距或者是IPhone X上的深度摄像头利用结构光可以获取到深度信息,但是在Android手机中,我目前没有发现任何有用的相关信息。希望各位大神能够给点建议,十分感谢

1个回复
yuxiaodongge
yuxiaodongge
2天前发布
  • android-studio
  • android


> Task :app:transformClassesWithDexBuilderForRelease
com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process E:\MVVM\mj\customer-app-android\app\build\intermediates\transforms\ajx\release\78.jar
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:593)
    at java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677)
    at java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:720)
    at com.android.ide.common.internal.WaitableExecutor.waitForTasksWithQuickFail(WaitableExecutor.java:146)
    at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.transform(DexArchiveBuilderTransform.java:405)
    at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:239)
    at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:235)
    at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
    at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:230)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
    at org.gradle.api.internal.project.taskfactory.IncrementalTaskInputsTaskAction.doExecute(IncrementalTaskInputsTaskAction.java:46)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
    at org.gradle.api.internal.project.taskfactory.AbstractIncrementalTaskAction.execute(AbstractIncrementalTaskAction.java:25)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$5.run(ExecuteActionsTaskExecuter.java:404)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:393)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:376)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:80)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:213)
    at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$0(ExecuteStep.java:32)
    at java.util.Optional.map(Optional.java:215)
    at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32)
    at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)
    at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:58)
    at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35)
    at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:48)
    at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:33)
    at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:39)
    at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)
    at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)
    at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:35)
    at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51)
    at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:45)
    at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:31)
    at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:201)
    at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:70)
    at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:45)
    at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)
    at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:43)
    at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:32)
    at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)
    at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:96)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:89)
    at java.util.Optional.map(Optional.java:215)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:38)
    at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:77)
    at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)
    at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)
    at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)
    at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:90)
    at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:48)
    at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:120)
    at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutionStateTaskExecuter.java:75)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:108)
    at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
    at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94)
    at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:73)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
    at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
    at org.gradle.execution.plan.DefaultPlanExecutor.process(DefaultPlanExecutor.java:74)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.executeWithServices(DefaultTaskExecutionGraph.java:178)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.execute(DefaultTaskExecutionGraph.java:154)
    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:41)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40)
    at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:24)
    at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:46)
    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:49)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:33)
    at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:383)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
    at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:247)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:159)
    at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:134)
    at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:58)
    at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:55)
    at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:82)
    at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:75)
    at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183)
    at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
    at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:75)
    at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:55)
    at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:54)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:58)
    at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
    at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:39)
    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:51)
    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:45)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:49)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:46)
    at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:78)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:46)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:31)
    at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:42)
    at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:28)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:52)
    at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:59)
    at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:36)
    at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:68)
    at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:38)
    at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:37)
    at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:26)
    at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
    at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
    at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:60)
    at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:32)
    at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:55)
    at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:41)
    at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:48)
    at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:32)
    at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
    at org.gradle.util.Swapper.swap(Swapper.java:38)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
    at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
    at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process E:\MVVM\mj\customer-app-android\app\build\intermediates\transforms\ajx\release\78.jar
    at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.launchProcessing(DexArchiveBuilderTransform.java:900)
    at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.lambda$convertToDexArchive$6(DexArchiveBuilderTransform.java:825)
    at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424)
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
    at com.android.builder.dexing.D8DexArchiveBuilder.getExceptionToRethrow(D8DexArchiveBuilder.java:124)
    at com.android.builder.dexing.D8DexArchiveBuilder.convert(D8DexArchiveBuilder.java:101)
    at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.launchProcessing(DexArchiveBuilderTransform.java:895)
    ... 6 more
Caused by: java.lang.IllegalArgumentException: Multiple entries with same key: Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View=Encoded method Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View and Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View=Encoded method Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View
    at com.android.tools.r8.com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:190)
    at com.android.tools.r8.com.google.common.collect.RegularImmutableMap.checkNoConflictInKeyBucket(RegularImmutableMap.java:109)
    at com.android.tools.r8.com.google.common.collect.RegularImmutableMap.fromEntryArray(RegularImmutableMap.java:95)
    at com.android.tools.r8.com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:373)
    at com.android.tools.r8.graph.AppInfo.computeDefinitions(AppInfo.java:57)
    at com.android.tools.r8.graph.AppInfo.getDefinitions(AppInfo.java:91)
    at com.android.tools.r8.graph.AppInfo.definitionFor(AppInfo.java:82)
    at com.android.tools.r8.ir.optimize.CodeRewriter.collectClassInitializerDefaults(CodeRewriter.java:1244)
    at com.android.tools.r8.ir.conversion.IRConverter.rewriteCode(IRConverter.java:711)
    at com.android.tools.r8.ir.conversion.IRConverter.convertMethodToDex(IRConverter.java:381)
    at com.android.tools.r8.ir.conversion.IRConverter.convertMethodsToDex(IRConverter.java:363)
    at com.android.tools.r8.ir.conversion.IRConverter.lambda$convertClassesToDex$2(IRConverter.java:354)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:117)
    at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:38)
    at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:77)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:260)
    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
    at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:56)
    at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:36)
    at com.android.tools.r8.ir.conversion.IRConverter.convertClassesToDex(IRConverter.java:354)
    at com.android.tools.r8.ir.conversion.IRConverter.convertToDex(IRConverter.java:269)
    at com.android.tools.r8.D8.optimize(D8.java:203)
    at com.android.tools.r8.D8.run(D8.java:163)
    at com.android.tools.r8.D8.lambda$run$1(D8.java:93)
    at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:55)
    at com.android.tools.r8.utils.ExceptionUtils.withD8CompilationHandler(ExceptionUtils.java:43)
    at com.android.tools.r8.D8.run(D8.java:90)
    at com.android.builder.dexing.D8DexArchiveBuilder.convert(D8DexArchiveBuilder.java:99)
    ... 7 more
    Suppressed: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Multiple entries with same key: Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View=Encoded method Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View and Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View=Encoded method Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View
        at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:502)
        at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:461)
        at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:83)
        at com.android.tools.r8.utils.ThreadUtils.awaitFutures(ThreadUtils.java:21)
        at com.android.tools.r8.ir.conversion.IRConverter.convertClassesToDex(IRConverter.java:356)
        ... 15 more
    [CIRCULAR REFERENCE:java.lang.IllegalArgumentException: Multiple entries with same key: Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View=Encoded method Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View and Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View=Encoded method Method cn.jiguang.analytics.android.e.m.a Proto ILL int  androidx.viewpager.widget.ViewPager android.view.View]

:app:transformClassesWithDexBuilderForRelease spend 58392ms

> Task :app:transformClassesWithDexBuilderForRelease FAILED
Tasks spend time > 50ms:
      00:58.39   :app:transformClassesWithDexBuilderForRelease
      00:51.92   :app:compileReleaseJavaWithJavac
      00:46.37   :app:processReleaseResources
      00:16.87   :immodule:compileReleaseJavaWithJavac
      00:11.90   :app:transformClassesWithAjxForRelease
      00:04.62   :app:mergeReleaseResources
      00:02.09   :uikit:compileReleaseJavaWithJavac
      00:01.82   :immodule:generateReleaseRFile
      00:01.27   :immodule:packageReleaseResources
      00:01.06   :app:processReleaseManifest
      00:00.96   :app:compileReleaseKotlin
      00:00.42   :app:javaPreCompileRelease
      00:00.34   :jrlib:compileReleaseJavaWithJavac
      00:00.33   :uikit:packageReleaseResources
      00:00.29   :app:mergeReleaseAssets
      00:00.25   :immodule:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease
      00:00.24   :immodule:fabricGenerateResourcesRelease
      00:00.19   :uikit:packageReleaseAssets
      00:00.14   :jrlib:compileReleaseKotlin
      00:00.10   :jrlib:packageReleaseResources
      00:00.10   :uikit:compileReleaseRenderscript
      00:00.08   :jrlib:generateReleaseRFile
      00:00.07   :app:checkReleaseClasspath
      00:00.06   :immodule:generateReleaseBuildConfig
      00:00.06   :uikit:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease
      00:00.05   :uikit:packageReleaseRenderscript
      00:00.05   :immodule:packageReleaseAssets
      00:00.05   :uikit:generateReleaseRFile

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithDexBuilderForRelease'.
> com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process E:\MVVM\mj\customer-app-android\app\build\intermediates\transforms\ajx\release\78.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3m 24s
69 actionable tasks: 20 executed, 49 up-to-date
下午 7:47:37: Task execution finished 'installRelease'.
 

0个回复
weixin_42512282
weixin_42512282
2天前发布
  • android-studio
  • apache
  • java
  • Golang
  • android

34分

build.gradle: Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:30.+.
<a href="Unable to resolve dependency for &#39;:app@debug/compileClasspath&#39;: Could not find any version that matches com.android.support:appcompat-v7:30.+.">Show Details</a>
Affected Modules: <a href="openFile:G:/springboot_bs/MyApplication/app/build.gradle">app</a>
build.gradle: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:30.+.
<a href="Unable to resolve dependency for &#39;:app@debugAndroidTest/compileClasspath&#39;: Could not find any version that matches com.android.support:appcompat-v7:30.+.">Show Details</a>
Affected Modules: <a href="openFile:G:/springboot_bs/MyApplication/app/build.gradle">app</a>
build.gradle: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:30.+.
<a href="Unable to resolve dependency for &#39;:app@debugUnitTest/compileClasspath&#39;: Could not find any version that matches com.android.support:appcompat-v7:30.+.">Show Details</a>
Affected Modules: <a href="openFile:G:/springboot_bs/MyApplication/app/build.gradle">app</a>
build.gradle: Unable to resolve dependency for ':app@release/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:30.+.
<a href="Unable to resolve dependency for &#39;:app@release/compileClasspath&#39;: Could not find any version that matches com.android.support:appcompat-v7:30.+.">Show Details</a>
Affected Modules: <a href="openFile:G:/springboot_bs/MyApplication/app/build.gradle">app</a>
build.gradle: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:30.+.
<a href="Unable to resolve dependency for &#39;:app@releaseUnitTest/compileClasspath&#39;: Could not find any version that matches com.android.support:appcompat-v7:30.+.">Show Details</a>
Affected Modules: <a href="openFile:G:/springboot_bs/MyApplication/app/build.gradle">app</a>
 

0个回复
qq_29391809
小峥嵘
2天前发布
  • android-studio
  • android
        View indexView = View.inflate(this,R.layout.index,null);
        ImageButton imageButtonWifi = indexView.findViewById(R.id.wifi);
        imageButtonWifi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.d("Tag","66666");
            }
        });
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:id="@+id/index">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:background="#0066FF"
        >

        <ImageView
            android:layout_width="32dp"
            android:layout_height="32dp"
            android:background="@drawable/logo"
            android:layout_alignParentLeft="true"
            android:layout_marginLeft="20dp"
            android:layout_centerInParent="true"
            android:id="@+id/icon"/>

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="XXXX大学"
            android:textColor="#ffffff"
            android:layout_toRightOf="@+id/icon"
            android:layout_centerInParent="true"
            android:layout_marginLeft="10dp"/>

        <ImageButton
            android:layout_width="20dp"
            android:layout_height="20dp"
            android:background="@drawable/scan"
            android:layout_alignParentRight="true"
            android:layout_centerInParent="true"
            android:layout_marginRight="20dp"/>

    </RelativeLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="75dp"
        android:orientation="horizontal"
        android:background="#0066FF">
        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_weight="1">
            <ImageButton
                android:layout_width="40dp"
                android:layout_height="40dp"
                android:background="@drawable/wifi"
                android:layout_centerHorizontal="true"
                android:id="@+id/wifi"/>
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="校园网认证"
                android:textColor="#ffffff"
                android:layout_below="@+id/wifi"
                android:layout_centerInParent="true"
                android:textSize="12dp"/>
        </RelativeLayout>
        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_weight="1">
            <ImageButton
                android:layout_width="40dp"
                android:layout_height="40dp"
                android:background="@drawable/timetable"
                android:layout_centerHorizontal="true"
                android:id="@+id/timetable"/>
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="课表"
                android:textColor="#ffffff"
                android:layout_below="@+id/timetable"
                android:layout_centerInParent="true"
                android:textSize="12dp"/>
        </RelativeLayout>
        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_weight="1">
            <ImageButton
                android:layout_width="40dp"
                android:layout_height="40dp"
                android:background="@drawable/helper"
                android:layout_centerHorizontal="true"
                android:id="@+id/helper"/>
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="班委助手"
                android:textColor="#ffffff"
                android:layout_below="@+id/helper"
                android:layout_centerInParent="true"
                android:textSize="12dp"/>
        </RelativeLayout>
        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_weight="1">
            <ImageButton
                android:layout_width="40dp"
                android:layout_height="40dp"
                android:background="@drawable/application"
                android:layout_centerHorizontal="true"
                android:id="@+id/application"/>
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="其它应用"
                android:textColor="#ffffff"
                android:layout_below="@+id/application"
                android:layout_centerInParent="true"
                android:textSize="12dp"/>
        </RelativeLayout>
    </LinearLayout>


    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="66666"
        android:id="@+id/textBtn"/>
</LinearLayout>

另外textBtn点击也没有响应。

2个回复
weixin_47850725
如果可以……
2天前发布
  • android-studio
  • apache

需要什么软件或者代码转换db格式--

本人软件傻白来的

求大神帮忙。

2个回复
qq_27457675
qq_27457675
3天前发布
  • android-studio
  • apache
  • xml
  • webview
  • android

想查看一个apk是谁制作和提供服务的,怎么操作?

1个回复
qq_52736349
Nx.妖孽·醉星辰
3天前发布
  • android

链接: https://pan.baidu.com/s/1Grc39_hDMeCHkD_RFgsAWA 提取码: m3q6

0个回复
u010089114
u010089114
3天前发布
  • android-studio
  • android
  • java
  • c++
  • ios

 

flutter setState后图片没有马上更新,而是需要将页面下滑至看不到此图片之后,再滑上来,此图片才能更新

相关代码:

String url="https://csdnimg.cn/medal/github@240.png";
  @override
  Widget build(BuildContext context) {

    Scaffold(body:Column(children:<Widget>[Image.network(url),

      FlatButton(child:Text('change'),onPressed:() {
        setState(() {
          url = "https://csdnimg.cn/medal/qiandao5@240.png";
        });
      }
      )

    ]

    )

    );

  }
 

1个回复
qq_44173699
CodrStar
3天前发布
  • android-studio
  • java

我是想实现一个android的多人聊天室,用了socket-io去实现了客户端和服务端(用socket.io-client-java写的聊天客户端,用于netty-socketio-java实现的服务端),我先用了一个类去访问了我自己写的服务端,是可以来连接上的,还可以进行消息传送!但是!!!我一将客户端的代码放去android端去连接服务端的时候,死活连不上,也没报错,就是没连上服务端,没触发服务端的connect事件,我也加了android的网络权限啊!下面附上我的代码,求大神帮忙解决一下!!!

服务端代码:(在IDEA中实现的)

import com.corundumstudio.socketio.AckRequest;
import com.corundumstudio.socketio.Configuration;
import com.corundumstudio.socketio.SocketIOClient;
import com.corundumstudio.socketio.SocketIOServer;
import com.corundumstudio.socketio.listener.ConnectListener;
import com.corundumstudio.socketio.listener.DataListener;
import com.corundumstudio.socketio.listener.DisconnectListener;
import io.socket.client.Socket;

import java.util.ArrayList;
import java.util.List;

/**
 * @author pengqian
 * @date 2020/11/19 - 14:02
 */
public class ServerSocketIOForAndroid {
    public static void main(String[] args) {
        /**
         * 创建Socket,并设置监听端口
         */
        Configuration config = new Configuration();
        config.setHostname("localhost");
        //设置监听端口
        config.setPort(2000);
        final SocketIOServer server = new SocketIOServer(config);
        System.out.println("服务器创建成功");
        /**
         * 添加连接监听事件,监听是否与客户端连接到服务器
         */
        server.addConnectListener(new ConnectListener() {
            @Override
            public void onConnect(SocketIOClient client) {
                // 判断是否有客户端连接
                if (client != null) {
                    System.out.println("连接成功。。。");
                    System.out.println("连接的客户端的信息是:IP:"+client.getRemoteAddress()+"  SessionID:"+client.getSessionId());
                } else {
                    System.err.println("并没有人连接上。。。");
                }
            }
        });
        server.addDisconnectListener(new DisconnectListener() {
            @Override
            public void onDisconnect(SocketIOClient client) {
                System.out.println(client.getRemoteAddress()+"客户端已经取消连接了");
                client.sendEvent(Socket.EVENT_MESSAGE,"连接关闭");
            }
        });
        /**
         * 添加监听事件,监听客户端的事件
         * 1.第一个参数eventName需要与客户端的事件要一致
         * 2.第二个参数eventClase是传输的数据类型
         * 3.第三个参数listener是用于接收客户端传的数据,数据类型需要与eventClass一致
         */
        server.addEventListener("login", String.class, new DataListener<String>() {
            @Override
            public void onData(SocketIOClient client, String data,
                               AckRequest ackSender) throws Exception {
                // TODO Auto-generated method stub
                System.err.println("接收到客户端的信息为:" + data);
                //向客户端发送消息
                List<String> list = new ArrayList<String>();
                list.add("haode");
                //第一个参数必须与eventName一致,第二个参数data必须与eventClass一致
                client.sendEvent("login", list.toString());
            }
        });
        server.addEventListener(Socket.EVENT_MESSAGE, String.class, new DataListener<String>() {
            @Override
            public void onData(SocketIOClient socketIOClient, String s, AckRequest ackRequest) throws Exception {
                /*接受客户端send(data) 发来的数据*/

                /*
                * sendEvent(eventname,data) 向本广播对象中的全体客户端发送广播。
                  sendEvent(eventname,excludeSocketIOClient,data) 排除指定客户端广播。
                * */
              /*  String[] str=s.split("//");
                if(str[0].equals("0")){
                    //当有客户端连接到服务端 发送给客户端 "0//userName//加人聊天室"  "0//userName//离开聊天室"
                    System.out.println("广播的消息为:"+s);
                    server.getBroadcastOperations().sendEvent(Socket.EVENT_MESSAGE,s);
                }
                if(str[0].equals("1")){
                    str[0]="2";
                    String content=String.join("//",str);
                    System.out.println("消息为:"+content);
                    //客户端发来的数据类型 "1//username//聊天内容"  发送给客户端的消息类型 "2//username//聊天内容"
                    server.getBroadcastOperations().sendEvent(Socket.EVENT_MESSAGE,content);
                }*/
                server.getBroadcastOperations().sendEvent(Socket.EVENT_MESSAGE,s);
            }
        });
        //启动服务
        server.start();
        System.out.println("服务器已启动");
    }
}

可以连接上服务端的客户端代码:这里有个小问题就是如果是从控制台打印的中文字符串发送给服务器,服务器返回的就还是原来的字符串。但是,如果自己自定义一个String类型的中文字符串传给服务器,服务器传回来的中文字符串就变成了?问号,求大神解答!!!

public class Client {

   private static Socket socket;
    public static void main(String[] args) throws IOException {
        try{
            //IO.socket("http://localhost:2000/");可行
            //          "http://127.0.0.1:2000/" 可行
            //                  192.168.74.1
            //                  192.168.56.1
            //                  192.168.196.46
            //                  192.168.196.40
         socket = IO.socket("http://localhost:2000/");
        }catch (URISyntaxException e){
            e.printStackTrace();
        }
        socket.on(Socket.EVENT_CONNECT, new Emitter.Listener() {
            @Override
            public void call(Object... objects) {
                System.out.println("此客户端已经连接上服务端了");
                //向服务器发送数据 "0//userName//加人聊天室"
                String joinBrocast="0//"+"x"+"//加入聊天室";
                Boolean b=socket.connected();

                try {
                    socket.send(joinBrocast);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
        socket.on(Socket.EVENT_DISCONNECT, new Emitter.Listener() {
            @Override
            public void call(Object... objects) {
                System.out.println("连接关闭");
                socket.send("0//"+"xxx"+"//离开聊天室");
            }
        });
        socket.on(Socket.EVENT_MESSAGE, new Emitter.Listener() {
            @Override
            public void call(Object... objects) {
                  for(Object obj:objects){
                      System.out.println(obj);
                  }
            }
        });
        //socket.connect();
       socket.connect();
       Boolean a=socket.connected();
        //systemIn();

    }
    private static void systemIn() throws IOException {
       while(true){
            InputStream in = System.in;
            BufferedReader input = new BufferedReader(new InputStreamReader(in));;
            String content = input.readLine();
            socket.send(content);
        }


    }

    }

android客户端的代码(连接不上服务端):(在AS中实现)

/**
 * @author pengqian
 * @date 2020/11/19 - 22:26
 * 连接并获取Socket对象: mSocket = SingleSocket.getInstance().disConnect();
 * 断开连接:SingleSocket.getInstance().disConnect();
 */
public class SingleSocket {
    private Socket mSocket;
    //IO.socket("http://localhost:2000/");
    //          "http://127.0.0.1:2000/"
    //                  192.168.74.1
    //                  192.168.56.1
    //                  192.168.196.46
    //                  192.168.196.40
    public static final String IO_SOCKET_URL="http://localhost:2000/";
    private SingleSocket(){}
    private static class Holder{
        static SingleSocket SIGNAL = new SingleSocket();
    }
    public static SingleSocket getInstance(){
        return Holder.SIGNAL;
    }
    public Socket getSocket() {
        if (mSocket == null) {
            try {
                mSocket = IO.socket(IO_SOCKET_URL);
                mSocket.connect();
            } catch (URISyntaxException e) {
                e.printStackTrace();
            }
        }
        return mSocket;
    }
    public void disConnect(){
        if(mSocket!=null){
            mSocket.disconnect();
        }
    }
}
public class MainActivity2 extends AppCompatActivity implements View.OnClickListener{
    private TextView textView;
    private EditText editText;
    private Button btn_connect;
    private Button btn_send;
    private Button btn_disConnect;
    private Socket mSocket;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        mSocket = SingleSocket.getInstance().getSocket();
        /*new Thread(new Runnable(){
            @Override
            public void run() {
                mSocket = SingleSocket.getInstance().getSocket();
            }
        }).start();*/
        init();
        btn_connect.setOnClickListener(this);
        btn_send.setOnClickListener(this);
        btn_disConnect.setOnClickListener(this);
        mSocket.on(Socket.EVENT_MESSAGE, new Emitter.Listener() {
            @Override
            public void call(Object... args) {
                textView.setText(args[0].toString());
                System.out.println(mSocket.connected());
            }
        });
        mSocket.on(Socket.EVENT_CONNECT, new Emitter.Listener() {
            @Override
            public void call(Object... args) {
                textView.setText("连接成功!!!");
            }
        });
    }
    private void init(){

        textView=(TextView)findViewById(R.id.testView);
        editText=(EditText)findViewById(R.id.testEdit);
        btn_connect=(Button)findViewById(R.id.btn_connect);
        btn_send=(Button)findViewById(R.id.btn_send);
        btn_disConnect=(Button)findViewById(R.id.btn_disconnect);

    }
    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.btn_connect:{
                if(mSocket.connected()){
                    textView.setText("连接成功");
                }else{
                    textView.setText("连接失败");
                }
                break;
            }
            case R.id.btn_send: {
                mSocket.send(editText.getText().toString().trim());
                editText.setText("");
                break;
            }
            case R.id.btn_disconnect:{
                mSocket.disconnect();
                break;
            }
        }
    }
}

android客户端的依赖包和权限都如下:

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
    // https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
    compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.8.1'
    // https://mvnrepository.com/artifact/com.squareup.okio/okio
    compile group: 'com.squareup.okio', name: 'okio', version: '1.13.0'
    // https://mvnrepository.com/artifact/io.socket/engine.io-client
    compile group: 'io.socket', name: 'engine.io-client', version: '1.0.0'
    // https://mvnrepository.com/artifact/io.socket/socket.io-client
    compile group: 'io.socket', name: 'socket.io-client', version: '1.0.0'
    // https://mvnrepository.com/artifact/org.json/json
    //compile group: 'org.json', name: 'json', version: '20090211'
}


 <uses-permission android:name="android.permission.INTERNET" />

这个困扰我很久了,我也找过很多帖子,感觉都没有很大的帮助。求大神解决!!! 谢谢了!也欢迎评论区一起讨论。

1个回复
qq_27400335
丶GuoZhiHao
3天前发布
  • android-studio
  • android
  • java

Android xUtils3网络请求 怎么获取响应头

 x.http().post(params, new Callback.CommonCallback<String>() {
            @Override
            public void onSuccess(String result) {

            }

            @Override
            public void onError(Throwable ex, boolean isOnCallback) {
           
            }

            @Override
            public void onCancelled(CancelledException cex) {

            }

            @Override
            public void onFinished() {
                
            }

        });

 

1个回复
nishui31034747
nishui31034747
3天前发布
  • android

手机是zhanxun平台的手机

C:\Users\Administrator
λ adb shell am start -a com.sprd.engineermode/.EngineermoodeActivity
Starting: Intent { act=com.sprd.engineermode/.EngineermoodeActivity }
Error: Activity not started, unable to resolve Intent { act=com.sprd.engineermode/.EngineermoodeActivity flg=0x10000000 }

命令行完全不懂,需要大神解释,感恩

1个回复
weixin_48639727
weixin_48639727
4天前发布
  • android

一触摸屏幕,导航栏就会弹出。如何隐藏

 

1个回复
weixin_48639727
weixin_48639727
4天前发布
  • android-studio
  • android
  • xml

游戏app不能全屏游戏,点击游戏界面导航栏就会弹出,求助隐藏导航栏的方法红包感谢。

1个回复
qq_39268069
qq_39268069
4天前发布
  • android

 运行报这个错误,但是app可以正常运行,那这个错误是因为什么

1个回复
whl951753
whl951753
5天前发布
  • 搜索引擎
  • android

杂牌的安卓平板如何更换为WINDOS系统?具体如何操作?性能如何?

2个回复
jinfangzhu
涉世
5天前发布
  • android-studio

想问问大佬们,如何实现在自己写的APP里获取微信中的二维码并将二维码显示在自己写的APP中呢QAQ?我是用android studio进行开发的

2个回复
jixiangsichuan
戢翔
6天前发布
  • android-studio
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/scaleScrollView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >

    <LinearLayout
        android:id="@+id/scaleLinearLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:scaleX="2"
        android:scaleY="2">

            <ImageView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="10dp"
                android:adjustViewBounds="true"
                android:scaleType="fitXY"
                android:src="@mipmap/p1" />

            <ImageView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="10dp"
                android:adjustViewBounds="true"
                android:scaleType="fitXY"
                android:src="@mipmap/p2" />
    </LinearLayout>
</ScrollView>

运行效果如图,我的目的是想放大后,让两张图片能够滚动可以查看全完整的图片。但是放大后,大部分都被遮住了。请问大神如何设置才能让滚动条随着布局放大而放大呢?刚开始接触移动端,新手不太熟,望指教。

1个回复
my_name_is_Lkw
锅盔_劉
6天前发布
  • apache
  • mysql

Windows7 64位系统,禅道xampp在E:\xampp

xampp中文件单个删除只剩下tmp显示权限不足,mysql文件无法删除,mysqlzt服务计算机服务显示已停止,任务管理器中无法控制

apachezt已停止

如何删除这些文件

 

1个回复
cathezheng
cathezheng
6天前发布
  • android-studio
  • android

Cannot resolve method 'add' in 'String'

试了各种方法都没用

2个回复