我在 Android Studio(3.1.3,內部版本 173.4819257)中處理我的應用程序時遇到了臭名昭著的 R 缺失問題。我嘗試了許多解決方案,例如:清理和重建Gradle將項目與文件同步使緩存無效并重新啟動更正我的XML文件中的所有錯誤和警告(包括布局和清單)關閉 Android Studio 并重新啟動使包名和目錄路徑更短這是我的清單。我是Android開發的新手,所以我可能誤解了一些東西。<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.n.nomoko"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme" android:fullBackupContent="true" tools:ignore="GoogleAppIndexingWarning"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <service android:name=".logic.ChallengeService" android:process=":defis" /> <activity android:name=".views.AccueilActivity" /> <activity android:name=".views.InscriptionActivity"> </activity> </application></manifest>另外,如果有幫助,這是我的存儲庫樹。我的問題是:manifest關于我的包或路徑是否有問題?R.java即使所有XML文件都正確,為什么不生成?謝謝您的幫助 :)
添加回答
舉報
0/150
提交
取消