Giter Club home page Giter Club logo

androiddevhelp's Introduction

👋 Hi,我是香脆的大鸡排,Android 开发者。

Github State

大鸡排

androiddevhelp's People

Contributors

bolexliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

oneleafalex

androiddevhelp's Issues

第二排占座 镇楼

欢迎大家踊跃提问,个别bug需要 远程处理 请提前安装好 TeamViewer 12

第三排占座 镇楼

欢迎大家踊跃提问,个别bug需要 远程处理 请提前安装好 TeamViewer 12
遇到问题 多去思考问题,多去百度解决问题,多去github 搜索问题 俗称 三多

eventBus遇到的问题

清单文件注册了广播:监听网络状态,发送给服务
EventBus.getDefault().postSticky(new MessageEvent(NET_OK));

在onHandleIntent设值了一样定时启动的闹钟
AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
int startingTime = Integer.parseInt(uploadTime) * 1000;//默认30秒
long triggerTime = SystemClock.elapsedRealtime() + startingTime;
Intent startService = new Intent(this, UploadIntentService.class);

    PendingIntent pendingIntent = PendingIntent.getService(this, 0, startService, 0);
    alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, triggerTime, pendingIntent);

但是看打印:消息也会发送多次随着服务的启动。正常来说,服务的启动不应该会影响这个消息多次发送,消息源只发送了一次消息。在接收这里确接收到和服务定时一样,每隔30s就收到一个消息。
10-17 11:32:44.674 1343-1614/android.car.app.file_upload I/UploadIntentService: onResultCodeEvent NET_OK
10-17 11:33:14.698 1343-1614/android.car.app.file_upload I/UploadIntentService: onResultCodeEvent NET_OK
10-17 11:33:44.721 1343-1614/android.car.app.file_upload I/UploadIntentService: onResultCodeEvent NET_OK
10-17 11:34:14.742 1343-1614/android.car.app.file_upload I/UploadIntentService: onResultCodeEvent NET_OK
10-17 11:34:44.762 1343-1614/android.car.app.file_upload I/UploadIntentService: onResultCodeEvent NET_OK
10-17 11:35:14.782 1343-1614/android.car.app.file_upload I/UploadIntentService: onResultCodeEvent NET_OK

so重复导致的冲突问题

我期望的结果:

我想编译通过让程序正确运行。

我做了什么:


首先是报的是这个错误,说的好像是3dmap的jar和release/jni某个文件重复导致冲突了。
然后我在网上找到了这个解决方案:

他给出一个示例代码,现在我不知道这段示例代码该写在哪里,上面说的是写在app.gradle里面,但是我在里面每个位置都试过了,编译不通过。

结果是:

工作环境:

  • 编译sdk:25.0.2
  • java版本:1.8
  • 平台:win7
  • ide:androidStudio 3.0
  • Gradle: 4.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.