![](/img/trans.png)
[英]cannot resolve symbol 'Animations' when i use this library from github https://github.com/smarteist/android-image-slider
[英]Unable to start crop activity (using github.com/lvillani/android-cropimage ) Library
我使用庫: https : //github.com/lvillani/android-cropimage在我的項目中添加作物活動。我導入此庫並添加到我的項目中,現在我正在編寫此代碼:
String mPackage = "com.android.camera";
String mClass = ".CropImage";
intent.setComponent(new ComponentName(mPackage,mPackage+mClass));
startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);
它給出了錯誤:無法找到明確的活動類{com.android.camera/com.android.camera.CropImage}; 您是否在AndroidManifest.xml中聲明了此活動?
我試圖在項目驢子中用AndroidManifest.xml編寫,但仍然是相同的錯誤。
步驟#1:將<activity>
元素添加到指向com.android.camera.CropImage
清單中
步驟2:使用new Intent(this, com.android.camera.CropImage.class)
創建您的Intent
第3步:不應有第3步AFAIK
在您的android清單文件中添加這樣的活動,
...
....
</activity>
<!-- Declare the bundled CropImage Activity -->
<activity android:name="com.android.camera.CropImage"/>
</application>
</manifest>
文檔確實有幫助:) 鏈接
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.