Здравствуйте, ребята, мой проект имеет 2 модуля
модуль приложения (пакет com.licenta.andresadrian.shoppingcart)
модуль barcodescanner (пакет com.github.softotalss.barcodescanner)
Вот как моя основная активность определяется в AndroidManifest моего модуля приложения:
package="com.licenta.andresadrian.shoppingcart"> //Package set at the beginning
<activity android:name=".view.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Вот как она определена в моей MainActivity. java из модуля приложения:
import com.licenta.andresadrian.shoppingcart.R; //importing the resource files
setContentView(R.layout.activity_main);
Почему-то я получаю эту ошибку при попытке запустить приложение:
Ошибка при выполнении: am start -n "com.github.softotalss.barcodescanner / com.licenta. andresadrian.shoppingcart.view.MainActivity "-a android .intent.action.MAIN - c android .intent.category.LAUNCHER
Тип ошибки 3 Ошибка: класс активности {com.github. softotalss.barcodescanner / com.licenta.andresadrian.shoppingcart.view.MainActivity} не существует.