Tôi mới sử dụng Android và tôi đã gặp phải sự cố. Bảng điều khiển cho biết "Không thể xác định hoạt động khởi chạy: Không tìm thấy hoạt động mặc định". Tôi có thêmKhông thể xác định khởi chạy Hoạt động: Hoạt động mặc định không được tìm thấy
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
trong tệp kê khai. Và tôi đã thử Invalidate cache/Restart, vẫn không hoạt động. Và tệp lớp chứa hoạt động chính chuyển sang màu xanh lục trong studio android. Tôi không biết điều đó có nghĩa là gì. Đây là tệp kê khai của tôi.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mrrobot.mycoolweather" >
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<Activity android:name="com.example.mrrobot.mycoolweather.activity.ChooseAreaActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</Activity>
</application>
</manifest>
ChọnAreaActivity là cái tôi muốn sử dụng làm hoạt động trình khởi chạy.
Bạn có thể đăng ** biểu hiện ** đầy đủ của mình không? –
Hiển thị đầy đủ AndroidManifest.xml –