错误:在 ABI 的 NDK 工具链文件夹中找不到工具链,前缀为:arm-linux-androideabi
2022-09-02 22:20:44
我对Android Studio非常陌生,我正在快速移动并从我的代码中删除一些东西......现在我不断收到错误消息,我的gradle同步失败。
我在日志中看到以下内容:
2016-06-01 05:39:55,358 [32778590] WARN - radle.project.ProjectSetUpTask -
2016-06-01 05:39:55,358 [32778590] INFO - radle.project.ProjectSetUpTask - No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi
Consult IDE log for more details (Help | Show Log)
2016-06-01 05:39:55,360 [32778592] INFO - ls.idea.gradle.GradleSyncState - Sync with Gradle for project 'Jumping-Jinn' failed: No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi
Consult IDE log for more details (Help | Show Log)
2016-06-01 05:39:56,676 [32779908] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.
2016-06-01 05:39:56,677 [32779909] INFO - #com.jetbrains.cidr.lang - Loading symbols finished in 0 s.
2016-06-01 05:39:56,678 [32779910] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 0 s.
2016-06-01 05:39:56,678 [32779910] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.
我的代码基本上什么也没说:注意:AppCompatActivity目前是红色的
import android.media.Image;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageButton;
import android.widget.Toast;
public class HomeScreen extends AppCompatActivity {
ImageButton musicEnable_ImageButton;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home_screen);
musicEnable_ImageButton = (ImageButton) findViewById(R.id.soundEnable_button);
musicEnable_ImageButton.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
musicEnable_ImageButton.setBackgroundResource(R.drawable.musicon1);
}
});
}