Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当我使用不推荐的api时,Android studio 3.1.3不会显示任何错误_Android_Android Studio 3.1.3 - Fatal编程技术网

当我使用不推荐的api时,Android studio 3.1.3不会显示任何错误

当我使用不推荐的api时,Android studio 3.1.3不会显示任何错误,android,android-studio-3.1.3,Android,Android Studio 3.1.3,我使用android studio 3.1.3。当我编写不推荐的方法时(例如: Spanned a= Html.fromHtml("<b>hello</b>"); 改变这一切。。 应用程序级渐变构建改变了这一点 compileSdkVersion 27 // hear you can define any sdk. 所有依赖项根据27.删除28 alpha implementation 'com.android.support:appcompa

我使用android studio 3.1.3。当我编写不推荐的方法时(例如:

  Spanned a= Html.fromHtml("<b>hello</b>");
改变这一切。。 应用程序级渐变构建改变了这一点

    compileSdkVersion 27   // hear you can define any sdk.
所有依赖项根据27.删除28 alpha

    implementation 'com.android.support:appcompat-v7:27.1.1' 
我尝试了这段代码,并将其工作定义到onCreate方法中,然后将其放入活动中

        TextView textView=findViewById(R.id.textView);
    Spanned a= Html.fromHtml("<b>hello</b>");
    textView.setText(a);
TextView TextView=findViewById(R.id.TextView);
跨距a=Html.fromHtml(“你好”);
textView.setText(a);

我更改了它并重建了项目,但问题没有解决。我在问题中添加了build.gradle。请查看。我更新了我的答案。还有android studio无效/重新启动。我无效/重新启动了android studio,但不幸的是,我的编辑器没有显示任何错误或对不推荐使用的api的建议。请尝试重新启动studio。
        TextView textView=findViewById(R.id.textView);
    Spanned a= Html.fromHtml("<b>hello</b>");
    textView.setText(a);