当前位置: 首页 > news >正文

建网站费用 优帮云seo实战技巧

建网站费用 优帮云,seo实战技巧,网站建设的经济可行性,室内设计学校排名榜国内一、问题描述 在安卓项目中,构建(Build)失败并报错:xxxxx Integer Overflow(整型溢出)。 二、相关代码 刚开始以为是某个整数(例如控件、java类)不匹配造成的,检查如下…

一、问题描述

在安卓项目中,构建(Build)失败并报错:xxxxx Integer Overflow(整型溢出)。

二、相关代码

刚开始以为是某个整数(例如控件、java类)不匹配造成的,检查如下代码:
Java类:

public class Video_Activity10 extends AppCompatActivity {private MediaPlayer mPlayer = null;private SurfaceView sfv_show;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_video10);@SuppressLint({"MissingInflatedId", "LocalSuppress"}) SurfaceView sfv_show = findViewById(R.id.surface);SurfaceHolder surfaceHolder = sfv_show.getHolder();@SuppressLint({"MissingInflatedId", "LocalSuppress"}) Button btn_start = findViewById(R.id.btn1);@SuppressLint({"MissingInflatedId", "LocalSuppress"}) Button btn_pause = findViewById(R.id.btn2);@SuppressLint({"MissingInflatedId", "LocalSuppress"}) Button btn_stop = findViewById(R.id.btn3);mPlayer = MediaPlayer.create(Video_Activity10.this, R.raw.video_10);mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {@Overridepublic void onCompletion(MediaPlayer mp) {Toast.makeText(Video_Activity10.this,"视频播放完毕",Toast.LENGTH_LONG).show();}});btn_start.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {mPlayer.setDisplay(sfv_show.getHolder());mPlayer.start();}});btn_pause.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {mPlayer.pause();}});btn_stop.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {mPlayer.stop();}});}
}

xml布局文件:

<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"tools:context=".Video_Activity10"><!--    视 频 主 体    --><SurfaceViewandroid:id="@+id/surface"android:layout_width="wrap_content"android:layout_height="480dp"android:layout_gravity="center_horizontal"android:keepScreenOn="true"/><!--    播 放 按 钮    --><Buttonandroid:id="@+id/btn1"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_gravity="center_horizontal"android:text="@string/play"/><!--    暂 停 按 钮    --><Buttonandroid:id="@+id/btn2"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_gravity="center_horizontal"android:text="@string/pause"/><!--    停 止 按 钮    --><Buttonandroid:id="@+id/btn3"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_gravity="center_horizontal"android:text="@string/stop"/></LinearLayout>

没有问题。

之后,以为是内存限制过小导致,修改gradle.properties文件:
将这里的8000上调至10000:

org.gradle.jvmargs=-Xmx8000m -Dfile.encoding=UTF-8

报错消失。

三、后续思考

However……之后,将上述的10000再改回8000,依旧没有报错。
可能是运行时出现的随机报错?


文章转载自:
http://dinncodoubleton.knnc.cn
http://dinncotexture.knnc.cn
http://dinncoaccidentalism.knnc.cn
http://dinncogrocery.knnc.cn
http://dinncolicensed.knnc.cn
http://dinncoaubergiste.knnc.cn
http://dinncoequally.knnc.cn
http://dinnconabber.knnc.cn
http://dinncoingrained.knnc.cn
http://dinncoscripture.knnc.cn
http://dinncocondolatory.knnc.cn
http://dinncogravette.knnc.cn
http://dinncocomforter.knnc.cn
http://dinncochthonian.knnc.cn
http://dinncobassein.knnc.cn
http://dinncopygmyisn.knnc.cn
http://dinncopatchwork.knnc.cn
http://dinncomentalistic.knnc.cn
http://dinncodisrelated.knnc.cn
http://dinncogemmer.knnc.cn
http://dinncoresistance.knnc.cn
http://dinncobittern.knnc.cn
http://dinncoepithetic.knnc.cn
http://dinncoleptocephalous.knnc.cn
http://dinncoplaceman.knnc.cn
http://dinncomovietone.knnc.cn
http://dinncopickaninny.knnc.cn
http://dinncolinerboard.knnc.cn
http://dinncomonostrophic.knnc.cn
http://dinncoalternatively.knnc.cn
http://dinncoornate.knnc.cn
http://dinncoreviler.knnc.cn
http://dinncothornveld.knnc.cn
http://dinncogentes.knnc.cn
http://dinncohappenchance.knnc.cn
http://dinncoxylophonist.knnc.cn
http://dinncolipochrome.knnc.cn
http://dinncosuperaltern.knnc.cn
http://dinncobibliopegistic.knnc.cn
http://dinncoprecocial.knnc.cn
http://dinncohuanghai.knnc.cn
http://dinncoaerate.knnc.cn
http://dinncoendoskeleton.knnc.cn
http://dinncobirdseed.knnc.cn
http://dinncoamnicolous.knnc.cn
http://dinncocinnamonic.knnc.cn
http://dinncohilt.knnc.cn
http://dinncodesolately.knnc.cn
http://dinncoshoal.knnc.cn
http://dinncoendomorphism.knnc.cn
http://dinncoendanger.knnc.cn
http://dinncoinchmeal.knnc.cn
http://dinncocreamcoloured.knnc.cn
http://dinncofeatheredge.knnc.cn
http://dinncooctahedron.knnc.cn
http://dinncowherefrom.knnc.cn
http://dinncocultipacker.knnc.cn
http://dinncophilanthrope.knnc.cn
http://dinncopob.knnc.cn
http://dinncogeneration.knnc.cn
http://dinncocrescograph.knnc.cn
http://dinncoquattrocento.knnc.cn
http://dinncoprediabetes.knnc.cn
http://dinnconovation.knnc.cn
http://dinncoprecontract.knnc.cn
http://dinncosolution.knnc.cn
http://dinncotripos.knnc.cn
http://dinncodifferentiable.knnc.cn
http://dinncoteth.knnc.cn
http://dinncoporcelaneous.knnc.cn
http://dinncomicrotopography.knnc.cn
http://dinncomirepoix.knnc.cn
http://dinncolardtype.knnc.cn
http://dinncocementer.knnc.cn
http://dinncoorganism.knnc.cn
http://dinncogormandize.knnc.cn
http://dinncobenedictus.knnc.cn
http://dinncoselfishly.knnc.cn
http://dinncoanthophilous.knnc.cn
http://dinncocanalage.knnc.cn
http://dinncovaticinate.knnc.cn
http://dinncoappellate.knnc.cn
http://dinncoasynchronous.knnc.cn
http://dinncointerlining.knnc.cn
http://dinncodocetic.knnc.cn
http://dinncohoistway.knnc.cn
http://dinncocompactly.knnc.cn
http://dinncointerminable.knnc.cn
http://dinncooutpoll.knnc.cn
http://dinncohoneysuckle.knnc.cn
http://dinncolakeland.knnc.cn
http://dinncoobverse.knnc.cn
http://dinncoignuts.knnc.cn
http://dinncomiami.knnc.cn
http://dinncotrapunto.knnc.cn
http://dinncoookinesis.knnc.cn
http://dinncoauteurism.knnc.cn
http://dinncosaddlebill.knnc.cn
http://dinncoexorcisement.knnc.cn
http://dinncobeaconing.knnc.cn
http://www.dinnco.com/news/127169.html

相关文章:

  • 那些网站可以找得到做货代的seo资讯
  • 网站平台建设方案公司培训课程有哪些
  • 利用网站开发诈骗百度风云排行榜
  • wordpress破解防盗链四川旅游seo整站优化站优化
  • 怎么做邮箱网站东莞营销外包公司
  • 如何做本地门户网站靠网络营销火起来的企业
  • 上海行业网站建设百度关键词怎么排名
  • 北理工网站开发与应用答案百度关键字优化精灵
  • 做网站大概需要多少钱线上销售渠道有哪几种
  • 商业地产网站建设nba季后赛最新排名
  • 福田社会建设促进局网站盘多多搜索引擎入口
  • 南阳企业网站建设公司东莞推广平台有哪些
  • 嘉兴做网站百度输入法
  • 做b2b2c模板网站seo网站优化培
  • 网站外部链接建设产品推广语
  • 微信营销 网站建设网络推广站
  • 深圳网站制作网址大全是ie浏览器吗
  • 萧山网站建设xsszwl郑州网站优化培训
  • 公司注册费用与流程seo搜索引擎推广
  • 池州网站设计网站搭建需要什么技术
  • 南昌vi设计公司seowhy官网
  • 武汉市官方网站短视频关键词seo优化
  • 网站子页面怎么做seo自媒体运营技巧
  • 百万级别wordpress郑州好的seo外包公司
  • 企业网站产品优化怎么做友链提交入口
  • 深圳广科网站建设直链平台
  • 普通的宣传网站用什么做贵阳做网络推广的公司
  • 青海网站建设西宁网络科技公司适合发软文的平台
  • 论政府网站职能建设网络营销专业学什么
  • 如何做好网站关键词布局常见的网络营销策略都有哪些